[gtk+] Fix compilation warning: use entry var correctly initilized



commit 6a513f2289eb734f9b9cfb83e47e0f7e992fffbd
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Mar 9 17:14:50 2010 +0100

    Fix compilation warning: use entry var correctly initilized
    
    The warning was added in
    commit c744594b2099d03af6b7654de6c8ed5565acd1a9

 demos/gtk-demo/search_entry.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/search_entry.c b/demos/gtk-demo/search_entry.c
index 4a726f5..580dd13 100644
--- a/demos/gtk-demo/search_entry.c
+++ b/demos/gtk-demo/search_entry.c
@@ -316,11 +316,11 @@ do_search_entry (GtkWidget *do_widget)
       /* Create the menu */
       menu = create_search_menu (entry);
       gtk_menu_attach_to_widget (GTK_MENU (menu), entry, NULL);
-    }
 
-  /* add accessible alternatives for icon functionality */
-  g_signal_connect (entry, "populate-popup",
-                    G_CALLBACK (entry_populate_popup), NULL);
+      /* add accessible alternatives for icon functionality */
+      g_signal_connect (entry, "populate-popup",
+                        G_CALLBACK (entry_populate_popup), NULL);
+    }
 
   if (!gtk_widget_get_visible (window))
     gtk_widget_show_all (window);



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