aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-selector-dialog.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2009-12-18 14:28:42 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2009-12-19 07:48:55 +0800
commit2afe25753afb3279629a1e63c9340a4738c9bfa9 (patch)
tree8240d2c36ac98696eb734d1c14d42f9a50cd7b4b /libempathy-gtk/empathy-contact-selector-dialog.c
parent270d39eae11b2723a086e10e5dd9c358d1e90ade (diff)
downloadgsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.tar
gsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.tar.gz
gsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.tar.bz2
gsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.tar.lz
gsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.tar.xz
gsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.tar.zst
gsoc2013-empathy-2afe25753afb3279629a1e63c9340a4738c9bfa9.zip
[EmpathyContactSelectorDialog] switch from table_contents to VBox
This makes it more flexible to add other contents to the dialog.
Diffstat (limited to 'libempathy-gtk/empathy-contact-selector-dialog.c')
-rw-r--r--libempathy-gtk/empathy-contact-selector-dialog.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-selector-dialog.c b/libempathy-gtk/empathy-contact-selector-dialog.c
index 8f1ec149f..77eb7971f 100644
--- a/libempathy-gtk/empathy-contact-selector-dialog.c
+++ b/libempathy-gtk/empathy-contact-selector-dialog.c
@@ -272,6 +272,9 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
GtkEntryCompletion *completion;
GtkListStore *model;
GtkWidget *content_area;
+ GtkWidget *table_contact;
+
+ dialog->vbox = gtk_vbox_new (FALSE, 3);
/* create a contact manager */
priv->contact_manager = empathy_contact_manager_dup_singleton ();
@@ -279,7 +282,7 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
filename = empathy_file_lookup ("empathy-contact-selector-dialog.ui",
"libempathy-gtk");
gui = empathy_builder_get_file (filename,
- "table_contact", &dialog->table_contact,
+ "table_contact", &table_contact,
"account_chooser_label", &priv->account_chooser_label,
"entry_id", &priv->entry_id,
NULL);
@@ -290,7 +293,9 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
NULL);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
- gtk_container_add (GTK_CONTAINER (content_area), dialog->table_contact);
+ gtk_container_add (GTK_CONTAINER (content_area), dialog->vbox);
+ gtk_box_pack_start (GTK_BOX (dialog->vbox), table_contact, TRUE, TRUE, 0);
+ gtk_widget_show (dialog->vbox);
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
@@ -330,7 +335,7 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
/* Create account chooser */
priv->account_chooser = empathy_account_chooser_new ();
- gtk_table_attach_defaults (GTK_TABLE (dialog->table_contact),
+ gtk_table_attach_defaults (GTK_TABLE (table_contact),
priv->account_chooser,
1, 2, 0, 1);
empathy_account_chooser_set_filter (