From 7eae2e49e62834cfff13cc2ee10b37eaff38a6fb Mon Sep 17 00:00:00 2001 From: Marco Barisione Date: Fri, 10 May 2013 16:58:34 +0100 Subject: tpaw-utils: move EMP_STR_EMPTY to tp-aw and rename it https://bugzilla.gnome.org/show_bug.cgi?id=699492 --- tp-account-widgets/tpaw-live-search.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tp-account-widgets/tpaw-live-search.c') 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)); -- cgit v1.2.3