From a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 8 Jun 2010 23:47:27 +0200 Subject: Show/Hide the live search before refiltering --- libempathy-gtk/empathy-live-search.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c index cf80f9aa5..b1215bfd3 100644 --- a/libempathy-gtk/empathy-live-search.c +++ b/libempathy-gtk/empathy-live-search.c @@ -141,14 +141,14 @@ live_search_text_changed (GtkEntry *entry, text = gtk_entry_get_text (entry); - g_free (priv->text_stripped); - priv->text_stripped = strip_utf8_string (text); - g_object_notify (G_OBJECT (self), "text"); - - if (g_utf8_strlen (text, -1) < 1) + if (EMP_STR_EMPTY (text)) gtk_widget_hide (GTK_WIDGET (self)); else gtk_widget_show (GTK_WIDGET (self)); + + g_free (priv->text_stripped); + priv->text_stripped = strip_utf8_string (text); + g_object_notify (G_OBJECT (self), "text"); } static void -- cgit v1.2.3