Re: gdm problems



  Ok, just to reply to my own letter..

  As I would have noticed had I spent more than two seconds looking at that,
the problem was that libgnomeui itself was using gtk_toggle_set_state and
that function's name changed.  So I fixed the problems there, there may be
more but here's a patch against libgnomeui at least.

  Daniel
Index: gnome-calculator.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gnome-calculator.c,v
retrieving revision 1.39
diff -u -r1.39 gnome-calculator.c
--- gnome-calculator.c	1999/01/02 07:11:49	1.39
+++ gnome-calculator.c	1999/01/11 22:38:40
@@ -369,7 +369,7 @@
 static void
 unselect_invert(GnomeCalculator *gc)
 {
-	gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(gc->invert_button),
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gc->invert_button),
 				    FALSE);
 	gc->invert=FALSE;
 }
Index: gnome-dentry-edit.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gnome-dentry-edit.c,v
retrieving revision 1.19
diff -u -r1.19 gnome-dentry-edit.c
--- gnome-dentry-edit.c	1999/01/06 00:36:31	1.19
+++ gnome-dentry-edit.c	1999/01/11 22:39:00
@@ -360,8 +360,8 @@
   gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(dee->type_combo)->entry),
 			       dentry->type ? dentry->type : "");
 
-  gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(dee->terminal_button),
-			      dentry->terminal);
+  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dee->terminal_button),
+			       dentry->terminal);
 }
 
 /* Conform dentry to display */
Index: gnome-stock.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gnome-stock.c,v
retrieving revision 1.97
diff -u -r1.97 gnome-stock.c
--- gnome-stock.c	1999/01/08 17:42:15	1.97
+++ gnome-stock.c	1999/01/11 22:39:05
@@ -1735,21 +1735,21 @@
 	gtk_widget_show(w);
 	gtk_table_attach_defaults(table, w, 0, 2, 2, 3);
 	gtk_object_set_data(GTK_OBJECT(window), "control", w);
-	gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(w),
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),
 				    entry.mod & GDK_CONTROL_MASK);
 
 	w = gtk_check_button_new_with_label("Shift");
 	gtk_widget_show(w);
 	gtk_table_attach_defaults(table, w, 0, 2, 3, 4);
 	gtk_object_set_data(GTK_OBJECT(window), "shift", w);
-	gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(w),
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),
 				    entry.mod & GDK_SHIFT_MASK);
 
 	w = gtk_check_button_new_with_label("Alt");
 	gtk_widget_show(w);
 	gtk_table_attach_defaults(table, w, 0, 2, 4, 5);
 	gtk_object_set_data(GTK_OBJECT(window), "alt", w);
-	gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(w),
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),
 				    entry.mod & GDK_MOD1_MASK);
 
 	w = gnome_stock_button(GNOME_STOCK_BUTTON_CANCEL);
Index: gtk-ted.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gtk-ted.c,v
retrieving revision 1.26
diff -u -r1.26 gtk-ted.c
--- gtk-ted.c	1998/12/30 18:53:49	1.26
+++ gtk-ted.c	1999/01/11 22:39:08
@@ -1077,7 +1077,7 @@
 #endif
 	
 	check = gtk_check_button_new_with_label (string);
-	gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (check), toggle_val);
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), toggle_val);
 	gtk_box_pack_end_defaults (GTK_BOX (box), check);
 	gtk_widget_show (check);
 	gtk_signal_connect (GTK_OBJECT (check), "toggled", GTK_SIGNAL_FUNC (gtk_ted_checkbox_toggled), ci);
Index: gtkcauldron.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gtkcauldron.c,v
retrieving revision 1.14
diff -u -r1.14 gtkcauldron.c
--- gtkcauldron.c	1998/12/09 00:42:49	1.14
+++ gtkcauldron.c	1999/01/11 22:39:11
@@ -882,7 +882,7 @@
 			add_accelerator_with_underbar (w, accel_table, accelerator_key, label, underbar_pos);
 		    radio_group = gtk_radio_button_group (GTK_RADIO_BUTTON (w));
 		    next_arg (GTK_CAULDRON_TYPE_INT_P, user_data, &result);
-		    gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w), *result);
+		    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), *result);
 		    new_result (r, get_check_result, w, result);
 		    user_callbacks (w, p + 1, next_arg, user_data, accel_table);
 		    gtk_cauldron_box_add (widget_stack_top (stack), w, &p, pixels_per_space);

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]