[gedit] Replace dialog: create the SearchContext only when a button is pressed



commit 49c455c03ce98a11018459790cb0d04ea08cdba4
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Sep 17 17:42:08 2013 +0200

    Replace dialog: create the SearchContext only when a button is pressed

 gedit/gedit-replace-dialog.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gedit/gedit-replace-dialog.c b/gedit/gedit-replace-dialog.c
index 8dfd08e..98905c6 100644
--- a/gedit/gedit-replace-dialog.c
+++ b/gedit/gedit-replace-dialog.c
@@ -545,12 +545,6 @@ show_cb (GeditReplaceDialog *dialog)
                return;
        }
 
-       g_signal_connect_object (window,
-                                "active-tab-changed",
-                                G_CALLBACK (connect_active_document),
-                                dialog,
-                                G_CONNECT_SWAPPED);
-
        doc = get_active_document (dialog);
 
        if (doc == NULL)
@@ -581,18 +575,12 @@ show_cb (GeditReplaceDialog *dialog)
                g_free (escaped_selection);
        }
 
-       connect_active_document (dialog);
-
        g_free (selection);
 }
 
 static void
 hide_cb (GeditReplaceDialog *dialog)
 {
-       GeditWindow *window = get_gedit_window (dialog);
-
-       g_signal_handlers_disconnect_by_func (window, connect_active_document, dialog);
-
        disconnect_document (dialog);
 }
 


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