[nautilus] search-bar: remove unused focus-in signal



commit 1cb66dfb4c3750a142dfd3130613b52b1d386eff
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jan 7 02:15:45 2012 +0100

    search-bar: remove unused focus-in signal

 src/nautilus-search-bar.c |   26 --------------------------
 src/nautilus-search-bar.h |    1 -
 2 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/src/nautilus-search-bar.c b/src/nautilus-search-bar.c
index 4bb491f..a4072c8 100644
--- a/src/nautilus-search-bar.c
+++ b/src/nautilus-search-bar.c
@@ -38,7 +38,6 @@ struct NautilusSearchBarDetails {
 enum {
        ACTIVATE,
        CANCEL,
-       FOCUS_IN,
        LAST_SIGNAL
 }; 
 
@@ -90,15 +89,6 @@ nautilus_search_bar_class_init (NautilusSearchBarClass *class)
 			      g_cclosure_marshal_VOID__VOID,
 			      G_TYPE_NONE, 0);
 
-	signals[FOCUS_IN] =
-		g_signal_new ("focus-in",
-			      G_TYPE_FROM_CLASS (class),
-			      G_SIGNAL_RUN_LAST,
-			      G_STRUCT_OFFSET (NautilusSearchBarClass, focus_in),
-			      NULL, NULL,
-			      g_cclosure_marshal_VOID__VOID,
-			      G_TYPE_NONE, 0);
-
 	signals[CANCEL] =
 		g_signal_new ("cancel",
 			      G_TYPE_FROM_CLASS (class),
@@ -141,20 +131,6 @@ entry_activate_cb (GtkWidget *entry, NautilusSearchBar *bar)
        }
 }
 
-static gboolean
-focus_in_event_callback (GtkWidget *widget,
-			 GdkEventFocus *event,
-			 gpointer user_data)
-{
-	NautilusSearchBar *bar;
-
-	bar = NAUTILUS_SEARCH_BAR (user_data);
-
-	g_signal_emit (bar, signals[FOCUS_IN], 0);
-
-	return FALSE;
-}
-
 static void
 nautilus_search_bar_init (NautilusSearchBar *bar)
 {
@@ -194,8 +170,6 @@ nautilus_search_bar_init (NautilusSearchBar *bar)
 			  G_CALLBACK (entry_activate_cb), bar);
 	g_signal_connect (bar->details->entry, "icon-release",
 			  G_CALLBACK (entry_icon_release_cb), bar);
-	g_signal_connect (bar->details->entry, "focus-in-event",
-			  G_CALLBACK (focus_in_event_callback), bar);
 
 	gtk_widget_show (bar->details->entry);
 }
diff --git a/src/nautilus-search-bar.h b/src/nautilus-search-bar.h
index 5a18a3f..bb8674f 100644
--- a/src/nautilus-search-bar.h
+++ b/src/nautilus-search-bar.h
@@ -51,7 +51,6 @@ typedef struct {
 
 	void (* activate) (NautilusSearchBar *bar);
 	void (* cancel)   (NautilusSearchBar *bar);
-	void (* focus_in) (NautilusSearchBar *bar);
 } NautilusSearchBarClass;
 
 GType      nautilus_search_bar_get_type     	(void);



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