[gnome-control-center] printers: Don't react to icon-press when searching for new printers



commit 25f9517656a06a7365f08da4eaa2eae7c1efcab5
Author: Marek Kasik <mkasik redhat com>
Date:   Mon Jan 27 14:38:22 2014 +0100

    printers: Don't react to icon-press when searching for new printers
    
    There is no activatable icon in the new printer dialog.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694154

 panels/printers/pp-new-printer-dialog.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index 6fbb602..df082ea 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -49,10 +49,6 @@
 
 static void     actualize_devices_list (PpNewPrinterDialog *dialog);
 static void     populate_devices_list (PpNewPrinterDialog *dialog);
-static void     search_address_cb2 (GtkEntry             *entry,
-                                    GtkEntryIconPosition  icon_pos,
-                                    GdkEvent             *event,
-                                    gpointer              user_data);
 static void     search_address_cb (GtkSearchEntry *entry,
                                    gpointer        user_data);
 static void     new_printer_dialog_response_cb (GtkDialog *_dialog,
@@ -467,7 +463,6 @@ pp_new_printer_dialog_init (PpNewPrinterDialog *dialog)
 
   widget = (GtkWidget*)
     gtk_builder_get_object (priv->builder, "search-entry");
-  g_signal_connect (widget, "icon-press", G_CALLBACK (search_address_cb2), dialog);
   g_signal_connect (widget, "search-changed", G_CALLBACK (search_address_cb), dialog);
 
   widget = (GtkWidget*)
@@ -1618,15 +1613,6 @@ search_address_cb (GtkSearchEntry *entry,
 }
 
 static void
-search_address_cb2 (GtkEntry             *entry,
-                    GtkEntryIconPosition  icon_pos,
-                    GdkEvent             *event,
-                    gpointer              user_data)
-{
-  search_address_cb (GTK_SEARCH_ENTRY (entry), user_data);
-}
-
-static void
 actualize_devices_list (PpNewPrinterDialog *dialog)
 {
   PpNewPrinterDialogPrivate *priv = dialog->priv;


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