[empathy] Show/Hide the live search before refiltering
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Show/Hide the live search before refiltering
- Date: Wed, 9 Jun 2010 11:23:36 +0000 (UTC)
commit a7bf51e52c22b1b5c4d2d86ea8ead88adfe97f75
Author: Xavier Claessens <xclaesse gmail com>
Date: Tue Jun 8 23:47:27 2010 +0200
Show/Hide the live search before refiltering
libempathy-gtk/empathy-live-search.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libempathy-gtk/empathy-live-search.c b/libempathy-gtk/empathy-live-search.c
index cf80f9a..b1215bf 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]