enum {
PAGE_SEARCH_RESULTS,
- PAGE_NO_MATCH
+ PAGE_NO_MATCH,
+ PAGE_NOT_SUPPORTED,
};
typedef struct _EmpathyContactSearchDialogPrivate EmpathyContactSearchDialogPrivate;
if (error != NULL)
{
DEBUG ("Failed to reset the TpContactSearch: %s", error->message);
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook),
+ PAGE_NOT_SUPPORTED);
+
g_error_free (error);
return;
}
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook),
+ PAGE_SEARCH_RESULTS);
+
search = g_hash_table_new (g_str_hash, g_str_equal);
search_criteria = gtk_entry_get_text (GTK_ENTRY (priv->search_entry));
if (error != NULL)
{
DEBUG ("Failed to create a TpContactSearch: %s", error->message);
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook),
+ PAGE_NOT_SUPPORTED);
+
g_error_free (error);
return;
}
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook),
+ PAGE_SEARCH_RESULTS);
+
g_signal_connect (priv->searcher, "search-results-received",
G_CALLBACK (_search_results_received), self);
g_signal_connect (priv->searcher, "notify::state",
NULL);
append_message_page (self, _("No contacts found"));
+ append_message_page (self, _("Contact search is not supported on this account"));
gtk_box_pack_start (GTK_BOX (vbox), priv->notebook, TRUE, TRUE, 3);