]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkradiobutton.c
fix silly cut'n'paste error, with_label and with_mnemonic should create
[~andy/gtk] / gtk / gtkradiobutton.c
index 070c1adeb54fcc6f082310110e0610ad4df2ae35..8d9ed1e487b61da14b54cd449ef25df04a328b45 100644 (file)
@@ -217,7 +217,7 @@ gtk_radio_button_new_with_label (GSList      *group,
 {
   GtkWidget *radio_button;
 
-  radio_button = g_object_new (GTK_TYPE_CHECK_BUTTON, "label", label, NULL) ;
+  radio_button = g_object_new (GTK_TYPE_RADIO_BUTTON, "label", label, NULL) ;
 
   if (group)
     gtk_radio_button_set_group (radio_button, group);
@@ -243,7 +243,7 @@ gtk_radio_button_new_with_mnemonic (GSList      *group,
 {
   GtkWidget *radio_button;
 
-  radio_button = g_object_new (GTK_TYPE_CHECK_BUTTON, "label", label, "use_underline", TRUE, NULL);
+  radio_button = g_object_new (GTK_TYPE_RADIO_BUTTON, "label", label, "use_underline", TRUE, NULL);
 
   if (group)
     gtk_radio_button_set_group (radio_button, group);