aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-live-search.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-06-09 05:47:27 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-06-09 19:23:15 +0800
commita7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75 (patch)
tree6cd599beb8934f19239e5b996e12b09b9c1afab6 /libempathy-gtk/empathy-live-search.c
parent0cb1c94b09fa663adbabe8b8869a6747524a9b3e (diff)
downloadgsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.tar
gsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.tar.gz
gsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.tar.bz2
gsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.tar.lz
gsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.tar.xz
gsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.tar.zst
gsoc2013-empathy-a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75.zip
Show/Hide the live search before refiltering
Diffstat (limited to 'libempathy-gtk/empathy-live-search.c')
-rw-r--r--libempathy-gtk/empathy-live-search.c10
1 files changed, 5 insertions, 5 deletions
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