mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gwidget.c (x_create_radio): Fix the WRadio widgets.
This commit is contained in:
parent
3acd011d4f
commit
f037975889
@ -1,3 +1,7 @@
|
|||||||
|
1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* gwidget.c (x_create_radio): Fix the WRadio widgets.
|
||||||
|
|
||||||
1998-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
1998-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
* glayout.c (create_container): Add wmclass.
|
* glayout.c (create_container): Add wmclass.
|
||||||
|
@ -197,7 +197,6 @@ int
|
|||||||
x_create_radio (Dlg_head *h, widget_data parent, WRadio *r)
|
x_create_radio (Dlg_head *h, widget_data parent, WRadio *r)
|
||||||
{
|
{
|
||||||
GtkWidget *w, *vbox;
|
GtkWidget *w, *vbox;
|
||||||
GSList *group;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
vbox = gtk_vbox_new (0, 0);
|
vbox = gtk_vbox_new (0, 0);
|
||||||
@ -206,11 +205,10 @@ x_create_radio (Dlg_head *h, widget_data parent, WRadio *r)
|
|||||||
|
|
||||||
if (i == 0){
|
if (i == 0){
|
||||||
w = gtk_radio_button_new_with_label (NULL, text);
|
w = gtk_radio_button_new_with_label (NULL, text);
|
||||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (w));
|
|
||||||
r->first_gtk_radio = w;
|
r->first_gtk_radio = w;
|
||||||
} else {
|
} else
|
||||||
w = gtk_radio_button_new_with_label (group, text);
|
w = gtk_radio_button_new_with_label_from_widget (r->first_gtk_radio, text);
|
||||||
}
|
|
||||||
g_free (text);
|
g_free (text);
|
||||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w), (i == r->sel));
|
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w), (i == r->sel));
|
||||||
gtk_signal_connect (GTK_OBJECT (w), "toggled", GTK_SIGNAL_FUNC (radio_toggle), r);
|
gtk_signal_connect (GTK_OBJECT (w), "toggled", GTK_SIGNAL_FUNC (radio_toggle), r);
|
||||||
|
Loading…
Reference in New Issue
Block a user