#include "empathy-search-bar.h"
#include <glib/gi18n-lib.h>
+#include <tp-account-widgets/tpaw-builder.h>
+#include <tp-account-widgets/tpaw-utils.h>
#include "empathy-ui-utils.h"
#include "empathy-utils.h"
&can_go_backward, &can_go_forward);
gtk_widget_set_sensitive (priv->search_previous,
- can_go_backward && !EMP_STR_EMPTY (search));
+ can_go_backward && !TPAW_STR_EMPTY (search));
gtk_widget_set_sensitive (priv->search_next,
- can_go_forward && !EMP_STR_EMPTY (search));
+ can_go_forward && !TPAW_STR_EMPTY (search));
}
static void
/* (don't) display the not found label */
gtk_widget_set_visible (priv->search_not_found,
- !(found || EMP_STR_EMPTY (search)));
+ !(found || TPAW_STR_EMPTY (search)));
/* update the buttons */
empathy_search_bar_update_buttons (self, search, match_case);
self->priv = priv;
filename = empathy_file_lookup ("empathy-search-bar.ui", "libempathy-gtk");
- gui = empathy_builder_get_file (filename,
+ gui = tpaw_builder_get_file (filename,
"search_widget", &internal,
"search_close", &priv->search_close,
"search_entry", &priv->search_entry,
g_free (filename);
/* Add the signals */
- empathy_builder_connect (gui, self,
+ tpaw_builder_connect (gui, self,
"search_close", "clicked", empathy_search_bar_close_cb,
"search_entry", "changed", empathy_search_bar_entry_changed,
"search_previous", "clicked", empathy_search_bar_previous_cb,