mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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>
|
||||
|
||||
* glayout.c (create_container): Add wmclass.
|
||||
|
@ -197,7 +197,6 @@ int
|
||||
x_create_radio (Dlg_head *h, widget_data parent, WRadio *r)
|
||||
{
|
||||
GtkWidget *w, *vbox;
|
||||
GSList *group;
|
||||
int i;
|
||||
|
||||
vbox = gtk_vbox_new (0, 0);
|
||||
@ -206,11 +205,10 @@ x_create_radio (Dlg_head *h, widget_data parent, WRadio *r)
|
||||
|
||||
if (i == 0){
|
||||
w = gtk_radio_button_new_with_label (NULL, text);
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (w));
|
||||
r->first_gtk_radio = w;
|
||||
} else {
|
||||
w = gtk_radio_button_new_with_label (group, text);
|
||||
}
|
||||
} else
|
||||
w = gtk_radio_button_new_with_label_from_widget (r->first_gtk_radio, text);
|
||||
|
||||
g_free (text);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user