[Nautilus-list] small eel patch



This patch fixes the keypress event return value for the EelTextCaption
widget.

-dave


? eel-text-caption-keypress.patch
? test/test-eel-pixbuf-scale
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/eel/ChangeLog,v
retrieving revision 1.357
diff -u -r1.357 ChangeLog
--- ChangeLog	17 Apr 2002 20:31:20 -0000	1.357
+++ ChangeLog	18 Apr 2002 05:30:12 -0000
@@ -1,3 +1,8 @@
+2002-04-18  Dave Camp  <dave ximian com>
+
+	* eel/eel-text-caption.c: (entry_key_press_callback): Return
+	a gboolean.
+
 2002-04-17  Anders Carlsson  <andersca gnu org>
 
 	* eel/eel-background.c: (eel_background_start_loading_image):
Index: eel/eel-text-caption.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-text-caption.c,v
retrieving revision 1.17
diff -u -r1.17 eel-text-caption.c
--- eel/eel-text-caption.c	7 Mar 2002 08:09:25 -0000	1.17
+++ eel/eel-text-caption.c	18 Apr 2002 05:30:12 -0000
@@ -63,9 +63,9 @@
 /* Editable (entry) callbacks */
 static void entry_changed_callback            (GtkWidget           *entry,
 					       gpointer             user_data);
-static void entry_key_press_callback          (GtkWidget           *widget,
-					       GdkEventKey         *event,
-					       gpointer             user_data);
+static gboolean entry_key_press_callback          (GtkWidget           *widget,
+						   GdkEventKey         *event,
+						   gpointer             user_data);
 
 EEL_CLASS_BOILERPLATE (EelTextCaption, eel_text_caption, EEL_TYPE_CAPTION)
 
@@ -157,7 +157,7 @@
 	g_signal_emit (text_caption, text_caption_signals[CHANGED], 0);
 }
 
-static void
+static gboolean
 entry_key_press_callback (GtkWidget *widget, GdkEventKey *event, gpointer user_data)
 {
 	EelTextCaption *text_caption;
@@ -171,8 +171,10 @@
 			
 			gtk_entry_set_text (GTK_ENTRY (widget), expanded_text);
 			g_free (expanded_text);
+			return TRUE;
 		}
 	}
+	return FALSE;
 }
 
 /*


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