Commit 1c17073f authored by Jonny Lamb's avatar Jonny Lamb Committed by Xavier Claessens

Make empathy_contact_selector_new return a GtkWidget* to conform to GTK+.

Signed-off-by: 's avatarJonny Lamb <jonny.lamb@collabora.co.uk>

svn path=/trunk/; revision=2347
parent bb1f7649
......@@ -334,12 +334,12 @@ empathy_contact_selector_class_init (EmpathyContactSelectorClass *klass)
/* public methods */
EmpathyContactSelector *
GtkWidget *
empathy_contact_selector_new (EmpathyContactListStore *store)
{
g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST_STORE (store), NULL);
return g_object_new (EMPATHY_TYPE_CONTACT_SELECTOR, "store", store, NULL);
return GTK_WIDGET (g_object_new (EMPATHY_TYPE_CONTACT_SELECTOR, "store", store, NULL));
}
EmpathyContact *
......
......@@ -58,7 +58,7 @@ struct _EmpathyContactSelectorClass
};
GType empathy_contact_selector_get_type (void) G_GNUC_CONST;
EmpathyContactSelector *
GtkWidget *
empathy_contact_selector_new (EmpathyContactListStore *store);
EmpathyContact *
......
......@@ -53,8 +53,7 @@ int main (int argc,
{
EmpathyContactManager *manager;
EmpathyContactListStore *store;
EmpathyContactSelector *selector;
GtkWidget *vbox, *button;
GtkWidget *vbox, *button, *selector;
gchar *icon_path;
gtk_init (&argc, &argv);
......@@ -69,7 +68,7 @@ int main (int argc,
vbox = gtk_vbox_new (FALSE, 2);
selector = empathy_contact_selector_new (store);
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (selector), FALSE, FALSE, 5);
gtk_box_pack_start (GTK_BOX (vbox), selector, FALSE, FALSE, 5);
button = gtk_button_new_with_label ("Chat");
g_signal_connect (G_OBJECT (button), "clicked",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment