aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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