[gedit/wip/view-frame-cleanup] ViewFrame: connect to the changed signal, not notify::text
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/view-frame-cleanup] ViewFrame: connect to the changed signal, not notify::text
- Date: Wed, 7 Aug 2013 18:59:33 +0000 (UTC)
commit c5b149ba729fc603497d6c6f1c3459f878b2556e
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Aug 7 20:41:16 2013 +0200
ViewFrame: connect to the changed signal, not notify::text
The GtkSearchEntry "changed" signal is fixed.
gedit/gedit-view-frame.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index c112a96..fbc658e 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -914,7 +914,6 @@ customize_for_search_mode (GeditViewFrame *frame)
static void
search_init (GtkWidget *entry,
- GParamSpec *pspec,
GeditViewFrame *frame)
{
const gchar *entry_text;
@@ -1365,13 +1364,9 @@ gedit_view_frame_init (GeditViewFrame *frame)
G_CALLBACK (search_entry_insert_text),
frame);
- /* Use the "notify::text" signal, because the "changed" signal is
- * delayed with a GtkSearchEntry.
- * See https://bugzilla.gnome.org/show_bug.cgi?id=700229
- */
frame->priv->search_entry_changed_id =
g_signal_connect (frame->priv->search_entry,
- "notify::text",
+ "changed",
G_CALLBACK (search_init),
frame);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]