[PATCH] small code cleanup in nautilus-location-entry.c



Minor cleanup removing a cast

Jaap
Index: nautilus-location-entry.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-location-entry.c,v
retrieving revision 1.5
diff -u -r1.5 nautilus-location-entry.c
--- nautilus-location-entry.c	22 Nov 2004 15:24:37 -0000	1.5
+++ nautilus-location-entry.c	20 Mar 2005 19:53:18 -0000
@@ -379,11 +379,10 @@
 static void
 editable_event_after_callback (GtkEntry *entry,
 			       GdkEvent *event,
-			       gpointer user_data)
+			       NautilusLocationEntry *location_entry)
 {
 	GtkEditable *editable;
 	GdkEventKey *keyevent;
-	NautilusLocationEntry *location_entry;
 
 	if (event->type != GDK_KEY_PRESS) {
 		return;
@@ -391,7 +390,6 @@
 
 	editable = GTK_EDITABLE (entry);
 	keyevent = (GdkEventKey *)event;
-	location_entry = NAUTILUS_LOCATION_ENTRY (user_data);
 
 	/* After typing the right arrow key we move the selection to
 	 * the end, if we have a valid selection - since this is most
@@ -482,8 +480,8 @@
 
 	nautilus_entry_set_special_tab_handling (NAUTILUS_ENTRY (entry), TRUE);
 
-	g_signal_connect_object (entry, "event_after",
-				 G_CALLBACK (editable_event_after_callback), entry, 0);
+	g_signal_connect (entry, "event_after",
+		          G_CALLBACK (editable_event_after_callback), entry);
 
 }
 


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