diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-selector-dialog.c | 11 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-selector-dialog.h | 2 | ||||
-rw-r--r-- | libempathy-gtk/empathy-new-call-dialog.c | 4 |
3 files changed, 11 insertions, 6 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 ( diff --git a/libempathy-gtk/empathy-contact-selector-dialog.h b/libempathy-gtk/empathy-contact-selector-dialog.h index e317cd7a4..255d37ee1 100644 --- a/libempathy-gtk/empathy-contact-selector-dialog.h +++ b/libempathy-gtk/empathy-contact-selector-dialog.h @@ -50,8 +50,8 @@ struct _EmpathyContactSelectorDialog { GtkDialog parent; /* protected fields */ + GtkWidget *vbox; GtkWidget *button_action; - GtkWidget *table_contact; }; GType empathy_contact_selector_dialog_get_type (void); diff --git a/libempathy-gtk/empathy-new-call-dialog.c b/libempathy-gtk/empathy-new-call-dialog.c index 67bfb589d..2437b4978 100644 --- a/libempathy-gtk/empathy-new-call-dialog.c +++ b/libempathy-gtk/empathy-new-call-dialog.c @@ -177,8 +177,8 @@ empathy_new_call_dialog_init (EmpathyNewCallDialog *dialog) /* add video toggle */ priv->check_video = gtk_check_button_new_with_mnemonic (_("Send _Video")); - gtk_table_attach_defaults (GTK_TABLE (parent->table_contact), - priv->check_video, 1, 2, 2, 3); + gtk_box_pack_end (GTK_BOX (parent->vbox), priv->check_video, + FALSE, TRUE, 0); gtk_widget_show (priv->check_video); |