From 724817f46056c2c0479e979059b9365c7cb17fdf Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 29 Sep 2011 13:32:36 +0200 Subject: [PATCH] new-chatroom-dialog: use GtkGrid instead of GtkTable https://bugzilla.gnome.org/show_bug.cgi?id=660429 --- src/empathy-new-chatroom-dialog.c | 8 +++---- src/empathy-new-chatroom-dialog.ui | 37 +++++++++++++----------------- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index 29c88654..8176c480 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -57,7 +57,7 @@ typedef struct { GtkWidget *window; GtkWidget *vbox_widgets; - GtkWidget *table_info; + GtkWidget *table_grid; GtkWidget *label_account; GtkWidget *account_chooser; GtkWidget *label_server; @@ -156,7 +156,7 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent) filename = empathy_file_lookup ("empathy-new-chatroom-dialog.ui", "src"); gui = empathy_builder_get_file (filename, "new_chatroom_dialog", &dialog->window, - "table_info", &dialog->table_info, + "table_grid", &dialog->table_grid, "label_account", &dialog->label_account, "label_server", &dialog->label_server, "label_room", &dialog->label_room, @@ -210,9 +210,9 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent) empathy_account_chooser_set_filter (EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser), empathy_account_chooser_filter_supports_chatrooms, NULL); - gtk_table_attach_defaults (GTK_TABLE (dialog->table_info), + gtk_grid_attach (GTK_GRID (dialog->table_grid), dialog->account_chooser, - 1, 2, 0, 1); + 1, 0, 1, 1); gtk_widget_show (dialog->account_chooser); g_signal_connect (EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser), "ready", diff --git a/src/empathy-new-chatroom-dialog.ui b/src/empathy-new-chatroom-dialog.ui index 2db1244a..e77ec60c 100644 --- a/src/empathy-new-chatroom-dialog.ui +++ b/src/empathy-new-chatroom-dialog.ui @@ -72,13 +72,11 @@ 5 5 - + True False - 3 - 2 - 5 5 + 5 True @@ -89,10 +87,9 @@ 1 - 2 1 - 2 - GTK_FILL + 1 + 1 @@ -105,9 +102,10 @@ entry_room + 0 1 - 2 - GTK_FILL + 1 + 1 @@ -119,11 +117,9 @@ 1 - 2 2 - 3 - GTK_FILL - + 1 + 1 @@ -136,10 +132,10 @@ entry_server + 0 2 - 3 - GTK_FILL - + 1 + 1 @@ -150,13 +146,12 @@ Account: - GTK_FILL - + 0 + 0 + 1 + 1 - - - False -- 2.39.2