aboutsummaryrefslogtreecommitdiffstats
path: root/tp-account-widgets/tpaw-live-search.c
diff options
context:
space:
mode:
authorMarco Barisione <marco.barisione@collabora.co.uk>2013-05-10 23:58:34 +0800
committerMarco Barisione <marco.barisione@collabora.co.uk>2013-08-20 18:03:06 +0800
commit7eae2e49e62834cfff13cc2ee10b37eaff38a6fb (patch)
treedd8ce7c22177cd14324b466c2841466c23816ff8 /tp-account-widgets/tpaw-live-search.c
parent6609b50bce338fdb3fe470f57727d30211c8d104 (diff)
downloadgsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar
gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.gz
gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.bz2
gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.lz
gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.xz
gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.tar.zst
gsoc2013-empathy-7eae2e49e62834cfff13cc2ee10b37eaff38a6fb.zip
tpaw-utils: move EMP_STR_EMPTY to tp-aw and rename it
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tp-account-widgets/tpaw-live-search.c')
-rw-r--r--tp-account-widgets/tpaw-live-search.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tp-account-widgets/tpaw-live-search.c b/tp-account-widgets/tpaw-live-search.c
index 1547a4b27..059eac39c 100644
--- a/tp-account-widgets/tpaw-live-search.c
+++ b/tp-account-widgets/tpaw-live-search.c
@@ -25,6 +25,7 @@
#include "tpaw-live-search.h"
#include "empathy-utils.h"
+#include "tpaw-utils.h"
G_DEFINE_TYPE (TpawLiveSearch, tpaw_live_search, GTK_TYPE_HBOX)
@@ -133,7 +134,7 @@ tpaw_live_search_strip_utf8_string (const gchar *string)
GString *word = NULL;
const gchar *p;
- if (EMP_STR_EMPTY (string))
+ if (TPAW_STR_EMPTY (string))
return NULL;
for (p = string; *p != '\0'; p = g_utf8_next_char (p))
@@ -175,7 +176,7 @@ live_search_match_prefix (const gchar *string,
if (prefix == NULL || prefix[0] == 0)
return TRUE;
- if (EMP_STR_EMPTY (string))
+ if (TPAW_STR_EMPTY (string))
return FALSE;
prefix_p = prefix;
@@ -289,7 +290,7 @@ live_search_text_changed (GtkEntry *entry,
text = gtk_entry_get_text (entry);
- if (EMP_STR_EMPTY (text))
+ if (TPAW_STR_EMPTY (text))
gtk_widget_hide (GTK_WIDGET (self));
else
gtk_widget_show (GTK_WIDGET (self));