#include "config.h"
#include "empathy-contact-chooser.h"
+#include <glib/gi18n-lib.h>
+
#include "empathy-client-factory.h"
#include "empathy-individual-store-manager.h"
#include "empathy-individual-view.h"
GError *error = NULL;
FolksIndividual *individual;
TpContact *contact;
- EmpathyContact *emp_contact;
+ EmpathyContact *emp_contact = NULL;
self = tp_weak_ref_dup_object (wr);
if (self == NULL)
/* another request has been started */
goto out;
- individual = empathy_create_individual_from_tp_contact (contact);
+ individual = empathy_ensure_individual_from_tp_contact (contact);
if (individual == NULL)
goto out;
id = gtk_entry_get_text (entry);
- self->priv->search_words = empathy_live_search_strip_utf8_string (id);
+ self->priv->search_words = tpaw_live_search_strip_utf8_string (id);
self->priv->search_str = g_strdup (id);
add_temporary_individuals (self, id);
tp_proxy_prepare_async (self->priv->account_mgr, features, NULL, NULL);
/* Search entry */
- self->priv->search_entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (self), self->priv->search_entry, FALSE, TRUE, 6);
+ self->priv->search_entry = gtk_search_entry_new ();
+ gtk_entry_set_placeholder_text ( GTK_ENTRY(self->priv->search_entry),
+ _("Type to search a contact…"));
+ gtk_box_pack_start (GTK_BOX (self), self->priv->search_entry, FALSE, TRUE, 0);
gtk_widget_show (self->priv->search_entry);
g_signal_connect (self->priv->search_entry, "changed",
gtk_container_add (GTK_CONTAINER (self->priv->scroll_view),
GTK_WIDGET (self->priv->view));
- gtk_box_pack_start (GTK_BOX (self), self->priv->scroll_view, TRUE, TRUE, 6);
+ gtk_box_pack_start (GTK_BOX (self), self->priv->scroll_view, TRUE, TRUE, 0);
gtk_widget_show (GTK_WIDGET (self->priv->view));
gtk_widget_show (self->priv->scroll_view);
}