[evolution-patches] fix for bug #48166 (size filter doesn't save spinbutton changes)



turns out gtk 2.x now uses a new signal (ie, not "changed", but rather
"value-changed") when the value changes.

simple fix.

Jeff
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
? 48166.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/filter/ChangeLog,v
retrieving revision 1.371.4.1
diff -u -r1.371.4.1 ChangeLog
--- ChangeLog	5 Aug 2003 21:09:36 -0000	1.371.4.1
+++ ChangeLog	22 Sep 2003 18:41:34 -0000
@@ -1,3 +1,8 @@
+2003-09-22  Jeffrey Stedfast  <fejj ximian com>
+
+	* filter-int.c (get_widget): Listen to the "value-changed" signal
+	rather than the "changed" signal. Fixes bug #48166.
+
 2003-08-05  Not Zed  <NotZed Ximian com>
 
 	** See bug #42636.
Index: filter-int.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/filter-int.c,v
retrieving revision 1.10
diff -u -r1.10 filter-int.c
--- filter-int.c	2 Jan 2003 18:33:06 -0000	1.10
+++ filter-int.c	22 Sep 2003 18:41:34 -0000
@@ -234,7 +234,7 @@
 	if (fs->val)
 		gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), (gfloat) fs->val);
 	
-	g_signal_connect (spin, "changed", G_CALLBACK (spin_changed), fe);
+	g_signal_connect (spin, "value-changed", G_CALLBACK (spin_changed), fe);
 	
 	return spin;
 }


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