From b26b85d3bddf2afd23b621a817cd5041c5e2ef17 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 1 Nov 2011 13:39:49 +0100 Subject: account-widget-*: port to GtkGrid https://bugzilla.gnome.org/show_bug.cgi?id=662903 --- libempathy-gtk/empathy-account-widget-aim.ui | 36 +------ libempathy-gtk/empathy-account-widget-generic.ui | 24 +---- libempathy-gtk/empathy-account-widget-groupwise.ui | 38 +------ libempathy-gtk/empathy-account-widget-icq.ui | 44 +------- libempathy-gtk/empathy-account-widget-irc.ui | 43 +------- libempathy-gtk/empathy-account-widget-jabber.ui | 49 ++------- .../empathy-account-widget-local-xmpp.ui | 46 ++------- libempathy-gtk/empathy-account-widget-msn.ui | 38 +------ libempathy-gtk/empathy-account-widget-sip.c | 17 ++-- libempathy-gtk/empathy-account-widget-sip.h | 2 +- libempathy-gtk/empathy-account-widget-sip.ui | 111 +++++---------------- libempathy-gtk/empathy-account-widget-yahoo.ui | 51 ++-------- libempathy-gtk/empathy-account-widget.c | 110 ++++++++++---------- 13 files changed, 126 insertions(+), 483 deletions(-) diff --git a/libempathy-gtk/empathy-account-widget-aim.ui b/libempathy-gtk/empathy-account-widget-aim.ui index bbc358b4b..cbabbf5ba 100644 --- a/libempathy-gtk/empathy-account-widget-aim.ui +++ b/libempathy-gtk/empathy-account-widget-aim.ui @@ -13,10 +13,8 @@ vertical 6 - + True - 4 - 2 12 6 @@ -29,9 +27,6 @@ 2 - 3 - GTK_FILL - @@ -43,8 +38,6 @@ entry_screenname - GTK_FILL - @@ -54,8 +47,6 @@ 1 - 2 - @@ -66,10 +57,7 @@ 1 - 2 2 - 3 - @@ -85,11 +73,7 @@ 1 - 2 1 - 2 - GTK_FILL - @@ -103,11 +87,7 @@ 1 - 2 3 - 4 - GTK_FILL - @@ -128,10 +108,8 @@ True True - + True - 2 - 2 12 6 @@ -144,10 +122,7 @@ 1 - 2 1 - 2 - @@ -160,9 +135,6 @@ 1 - 2 - GTK_FILL - @@ -172,8 +144,6 @@ 1 - 2 - @@ -185,8 +155,6 @@ entry_server - GTK_FILL - diff --git a/libempathy-gtk/empathy-account-widget-generic.ui b/libempathy-gtk/empathy-account-widget-generic.ui index c22fda317..2b65f002b 100644 --- a/libempathy-gtk/empathy-account-widget-generic.ui +++ b/libempathy-gtk/empathy-account-widget-generic.ui @@ -7,20 +7,10 @@ vertical 6 - + True - 3 12 6 - - - - - - - - - False @@ -43,20 +33,10 @@ True queue - + True - 3 12 6 - - - - - - - - - diff --git a/libempathy-gtk/empathy-account-widget-groupwise.ui b/libempathy-gtk/empathy-account-widget-groupwise.ui index e5c89ec52..9be839bf4 100644 --- a/libempathy-gtk/empathy-account-widget-groupwise.ui +++ b/libempathy-gtk/empathy-account-widget-groupwise.ui @@ -12,10 +12,8 @@ vertical 6 - + True - 4 - 2 12 6 @@ -27,9 +25,6 @@ 2 - 3 - GTK_FILL - @@ -41,8 +36,6 @@ entry_id - GTK_FILL - @@ -52,8 +45,6 @@ 1 - 2 - @@ -69,11 +60,7 @@ 1 - 2 1 - 2 - GTK_FILL - @@ -84,11 +71,7 @@ 1 - 2 2 - 3 - GTK_FILL - @@ -102,11 +85,7 @@ 1 - 2 3 - 4 - GTK_FILL - @@ -126,10 +105,8 @@ True True - + True - 2 - 2 6 6 @@ -142,9 +119,6 @@ 1 - 2 - GTK_FILL - @@ -156,8 +130,7 @@ entry_server - GTK_FILL - + 0 @@ -167,8 +140,6 @@ 1 - 2 - @@ -182,10 +153,7 @@ 1 - 2 1 - 2 - diff --git a/libempathy-gtk/empathy-account-widget-icq.ui b/libempathy-gtk/empathy-account-widget-icq.ui index df2ddce17..d95027f3e 100644 --- a/libempathy-gtk/empathy-account-widget-icq.ui +++ b/libempathy-gtk/empathy-account-widget-icq.ui @@ -13,10 +13,8 @@ vertical 6 - + True - 4 - 2 12 6 @@ -29,9 +27,6 @@ 2 - 3 - GTK_FILL - @@ -43,8 +38,6 @@ entry_uin - GTK_FILL - @@ -54,8 +47,6 @@ 1 - 2 - @@ -66,10 +57,7 @@ 1 - 2 2 - 3 - @@ -85,11 +73,7 @@ 1 - 2 1 - 2 - GTK_FILL - @@ -103,11 +87,7 @@ 1 - 2 3 - 4 - GTK_FILL - @@ -128,10 +108,8 @@ True True - + True - 3 - 2 12 6 @@ -143,8 +121,6 @@ entry_charset - GTK_FILL - @@ -157,10 +133,7 @@ 1 - 2 2 - 3 - @@ -170,10 +143,7 @@ 1 - 2 1 - 2 - @@ -186,9 +156,7 @@ 2 - 3 - GTK_FILL - + 0 @@ -201,9 +169,7 @@ 1 - 2 - GTK_FILL - + 0 @@ -213,8 +179,6 @@ 1 - 2 - diff --git a/libempathy-gtk/empathy-account-widget-irc.ui b/libempathy-gtk/empathy-account-widget-irc.ui index 3e12c90d9..aa6e643ec 100644 --- a/libempathy-gtk/empathy-account-widget-irc.ui +++ b/libempathy-gtk/empathy-account-widget-irc.ui @@ -57,11 +57,9 @@ 6 12 - + True False - 2 - 2 12 6 @@ -72,8 +70,6 @@ Network: - GTK_FILL - @@ -85,9 +81,6 @@ 1 - 2 - GTK_FILL - @@ -97,8 +90,6 @@ 1 - 2 - @@ -108,11 +99,7 @@ 1 - 2 1 - 2 - GTK_FILL - GTK_FILL @@ -149,10 +136,9 @@ 6 12 - + True False - 2 6 6 @@ -173,7 +159,6 @@ - GTK_FILL @@ -249,8 +234,6 @@ 1 - 2 - GTK_FILL @@ -398,11 +381,9 @@ True True - + True False - 3 - 2 12 6 @@ -413,10 +394,7 @@ 1 - 2 2 - 3 - @@ -428,9 +406,6 @@ 2 - 3 - GTK_FILL - @@ -442,10 +417,7 @@ 1 - 2 1 - 2 - @@ -459,9 +431,7 @@ 1 - 2 - GTK_FILL - + 0 @@ -473,8 +443,7 @@ True - GTK_FILL - + 0 @@ -486,8 +455,6 @@ 1 - 2 - diff --git a/libempathy-gtk/empathy-account-widget-jabber.ui b/libempathy-gtk/empathy-account-widget-jabber.ui index c8aa1d494..f4ee3b559 100644 --- a/libempathy-gtk/empathy-account-widget-jabber.ui +++ b/libempathy-gtk/empathy-account-widget-jabber.ui @@ -223,7 +223,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho False 6 - + True False True @@ -411,11 +411,9 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho False 6 - + True False - 4 - 3 12 6 @@ -425,10 +423,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 1 - 3 2 - 3 - @@ -440,10 +435,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 1 - 3 3 - 4 - @@ -458,11 +450,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho True - 3 1 - 2 - GTK_FILL - @@ -476,9 +464,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 3 - 4 - GTK_FILL - + 0 @@ -492,9 +478,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 2 - 3 - GTK_FILL - + 0 @@ -509,9 +493,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho True - 3 - GTK_FILL - + 0 @@ -528,12 +510,10 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 0 none - + True False 12 - 3 - 2 6 6 @@ -546,10 +526,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 1 - 2 1 - 2 - @@ -559,8 +536,6 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 1 - 2 - @@ -575,11 +550,8 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho True - 2 2 - 3 - GTK_FILL - + 0 @@ -593,9 +565,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho 1 - 2 - GTK_FILL - + 0 @@ -608,8 +578,7 @@ Use <a href="http://www.facebook.com/username/">this page</a> to cho entry_server - GTK_FILL - + 0 diff --git a/libempathy-gtk/empathy-account-widget-local-xmpp.ui b/libempathy-gtk/empathy-account-widget-local-xmpp.ui index f7f0784ba..e5fc09670 100644 --- a/libempathy-gtk/empathy-account-widget-local-xmpp.ui +++ b/libempathy-gtk/empathy-account-widget-local-xmpp.ui @@ -7,10 +7,8 @@ vertical 6 - + True - 3 - 3 12 6 @@ -20,10 +18,7 @@ 1 - 3 2 - 3 - @@ -33,10 +28,7 @@ 1 - 3 1 - 2 - @@ -46,8 +38,6 @@ 1 - 3 - @@ -60,9 +50,7 @@ 2 - 3 - GTK_FILL - + 0 @@ -75,9 +63,7 @@ 1 - 2 - GTK_FILL - + 0 @@ -89,8 +75,7 @@ entry_first_name - GTK_FILL - + 0 @@ -105,10 +90,8 @@ True True - + True - 3 - 3 12 6 @@ -118,8 +101,6 @@ 1 - 3 - @@ -131,8 +112,7 @@ entry_published - GTK_FILL - + 0 @@ -142,10 +122,7 @@ 1 - 3 2 - 3 - @@ -155,10 +132,7 @@ 1 - 3 1 - 2 - @@ -171,9 +145,7 @@ 2 - 3 - GTK_FILL - + 0 @@ -186,9 +158,7 @@ 1 - 2 - GTK_FILL - + 0 diff --git a/libempathy-gtk/empathy-account-widget-msn.ui b/libempathy-gtk/empathy-account-widget-msn.ui index 3275a0165..6561e5cb0 100644 --- a/libempathy-gtk/empathy-account-widget-msn.ui +++ b/libempathy-gtk/empathy-account-widget-msn.ui @@ -12,10 +12,8 @@ vertical 6 - + True - 4 - 2 12 6 @@ -27,9 +25,6 @@ 2 - 3 - GTK_FILL - @@ -41,8 +36,6 @@ entry_id - GTK_FILL - @@ -52,8 +45,6 @@ 1 - 2 - @@ -69,11 +60,7 @@ 1 - 2 1 - 2 - GTK_FILL - @@ -84,11 +71,7 @@ 1 - 2 2 - 3 - GTK_FILL - @@ -102,11 +85,7 @@ 1 - 2 3 - 4 - GTK_FILL - @@ -126,10 +105,8 @@ True True - + True - 2 - 2 6 6 @@ -142,9 +119,6 @@ 1 - 2 - GTK_FILL - @@ -156,8 +130,7 @@ entry_server - GTK_FILL - + 0 @@ -167,8 +140,6 @@ 1 - 2 - @@ -182,10 +153,7 @@ 1 - 2 1 - 2 - diff --git a/libempathy-gtk/empathy-account-widget-sip.c b/libempathy-gtk/empathy-account-widget-sip.c index 405981b9e..d11634e75 100644 --- a/libempathy-gtk/empathy-account-widget-sip.c +++ b/libempathy-gtk/empathy-account-widget-sip.c @@ -111,12 +111,12 @@ checkbutton_tel_toggled ( void empathy_account_widget_sip_build (EmpathyAccountWidget *self, const char *filename, - GtkWidget **table_common_settings) + GtkWidget **grid_common_settings) { EmpathyAccountWidgetSip *settings; GtkWidget *vbox_settings; gboolean is_simple; - GtkWidget *table_advanced; + GtkWidget *grid_advanced; g_object_get (self, "simple", &is_simple, NULL); @@ -144,8 +144,8 @@ empathy_account_widget_sip_build (EmpathyAccountWidget *self, settings->self = self; self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", table_common_settings, - "table_advanced_sip_settings", &table_advanced, + "grid_common_settings", grid_common_settings, + "grid_advanced_sip_settings", &grid_advanced, "vbox_sip_settings", &vbox_settings, "label_stun-server", &settings->label_stun_server, "entry_stun-server", &settings->entry_stun_server, @@ -217,8 +217,8 @@ empathy_account_widget_sip_build (EmpathyAccountWidget *self, empathy_account_widget_setup_widget (self, settings->combobox_transport, "transport"); - gtk_table_attach_defaults (GTK_TABLE (table_advanced), - settings->combobox_transport, 1, 4, 11, 12); + gtk_grid_attach (GTK_GRID (grid_advanced), settings->combobox_transport, + 1, 11, 3, 1); gtk_widget_show (settings->combobox_transport); @@ -257,8 +257,9 @@ empathy_account_widget_sip_build (EmpathyAccountWidget *self, empathy_account_widget_setup_widget (self, settings->combobox_keep_alive_mechanism, "keepalive-mechanism"); - gtk_table_attach_defaults (GTK_TABLE (table_advanced), - settings->combobox_keep_alive_mechanism, 1, 4, 7, 8); + gtk_grid_attach (GTK_GRID (grid_advanced), + settings->combobox_keep_alive_mechanism, + 1, 7, 3, 1); gtk_widget_show (settings->combobox_keep_alive_mechanism); } diff --git a/libempathy-gtk/empathy-account-widget-sip.h b/libempathy-gtk/empathy-account-widget-sip.h index 6334a745b..7673a5bfd 100644 --- a/libempathy-gtk/empathy-account-widget-sip.h +++ b/libempathy-gtk/empathy-account-widget-sip.h @@ -28,7 +28,7 @@ G_BEGIN_DECLS void empathy_account_widget_sip_build (EmpathyAccountWidget *self, const char *filename, - GtkWidget **table_common_settings); + GtkWidget **grid_common_settings); G_END_DECLS diff --git a/libempathy-gtk/empathy-account-widget-sip.ui b/libempathy-gtk/empathy-account-widget-sip.ui index 5928d6077..171afd4c8 100644 --- a/libempathy-gtk/empathy-account-widget-sip.ui +++ b/libempathy-gtk/empathy-account-widget-sip.ui @@ -20,11 +20,9 @@ True False - + True False - 5 - 2 12 6 @@ -38,9 +36,6 @@ 2 - 3 - GTK_FILL - @@ -50,8 +45,6 @@ 1 - 2 - @@ -64,8 +57,7 @@ entry_password - GTK_FILL - + 0 @@ -82,11 +74,7 @@ 1 - 2 1 - 2 - GTK_FILL - @@ -96,11 +84,7 @@ 1 - 2 2 - 3 - GTK_FILL - @@ -115,11 +99,7 @@ 1 - 2 3 - 4 - GTK_FILL - @@ -134,10 +114,9 @@ True - 2 4 - 5 - + 0 + 4 @@ -176,11 +155,9 @@ 6 12 - + True False - 13 - 4 6 6 @@ -190,9 +167,7 @@ 1 - 2 2 - 3 @@ -202,9 +177,8 @@ 1 - 4 10 - 11 + 3 @@ -214,9 +188,7 @@ 1 - 2 5 - 6 @@ -227,9 +199,8 @@ 1 - 4 8 - 9 + 3 @@ -243,7 +214,6 @@ - 4 @@ -257,9 +227,8 @@ - 4 4 - 5 + 0 @@ -273,9 +242,8 @@ - 4 9 - 10 + 0 @@ -295,9 +263,7 @@ 2 - 3 - GTK_FILL - + 0 @@ -318,11 +284,9 @@ - 4 1 - 2 - GTK_FILL - + 0 + 4 @@ -342,9 +306,9 @@ - 4 3 - 4 + 0 + 4 @@ -363,7 +327,7 @@ 5 - 6 + 0 @@ -377,9 +341,8 @@ - 4 6 - 7 + 0 @@ -398,7 +361,7 @@ 7 - 8 + 0 @@ -417,7 +380,7 @@ 8 - 9 + 0 @@ -436,7 +399,7 @@ 10 - 11 + 0 @@ -455,7 +418,7 @@ 11 - 12 + 0 @@ -475,9 +438,9 @@ - 4 12 - 13 + 0 + 4 @@ -497,9 +460,9 @@ - 4 13 - 14 + 0 + 4 @@ -512,9 +475,7 @@ 2 - 3 2 - 3 @@ -526,9 +487,7 @@ 3 - 4 2 - 3 @@ -540,9 +499,7 @@ 2 - 3 5 - 6 @@ -554,29 +511,9 @@ 3 - 4 5 - 6 - - - - - - - - - - - - - - - - - - diff --git a/libempathy-gtk/empathy-account-widget-yahoo.ui b/libempathy-gtk/empathy-account-widget-yahoo.ui index 90ad4ecf5..9d002538c 100644 --- a/libempathy-gtk/empathy-account-widget-yahoo.ui +++ b/libempathy-gtk/empathy-account-widget-yahoo.ui @@ -14,10 +14,8 @@ vertical 6 - + True - 4 - 2 12 6 @@ -30,9 +28,6 @@ 2 - 3 - GTK_FILL - @@ -44,8 +39,6 @@ entry_id - GTK_FILL - @@ -55,8 +48,6 @@ 1 - 2 - @@ -67,10 +58,7 @@ 1 - 2 2 - 3 - @@ -86,11 +74,7 @@ 1 - 2 1 - 2 - GTK_FILL - @@ -104,11 +88,7 @@ 1 - 2 3 - 4 - GTK_FILL - @@ -132,10 +112,8 @@ True - + True - 4 - 2 12 6 @@ -148,9 +126,7 @@ True - 2 - GTK_FILL - + 2 @@ -163,9 +139,7 @@ 1 - 2 - GTK_FILL - + 0 @@ -178,9 +152,7 @@ 2 - 3 - GTK_FILL - + 0 @@ -190,10 +162,7 @@ 1 - 2 1 - 2 - @@ -203,10 +172,7 @@ 1 - 2 2 - 3 - @@ -219,9 +185,7 @@ 3 - 4 - GTK_FILL - + 0 @@ -234,10 +198,7 @@ 1 - 2 3 - 4 - diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index f3a2a66ad..8b693fa03 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -74,7 +74,7 @@ static ServiceInfo services_infos[N_SERVICES] = { typedef struct { EmpathyAccountSettings *settings; - GtkWidget *table_common_settings; + GtkWidget *grid_common_settings; GtkWidget *apply_button; GtkWidget *cancel_button; GtkWidget *entry_password; @@ -735,32 +735,39 @@ account_widget_generic_format_param_name (const gchar *param_name) static void accounts_widget_generic_setup (EmpathyAccountWidget *self, - GtkWidget *table_common_settings, - GtkWidget *table_advanced_settings) + GtkWidget *grid_common_settings, + GtkWidget *grid_advanced_settings) { TpConnectionManagerParam *params, *param; EmpathyAccountWidgetPriv *priv = GET_PRIV (self); + guint row_common = 0, row_advanced = 0; params = empathy_account_settings_get_tp_params (priv->settings); for (param = params; param != NULL && param->name != NULL; param++) { - GtkWidget *table_settings; - guint n_rows = 0; + GtkWidget *grid_settings; + guint row; GtkWidget *widget = NULL; gchar *param_name_formatted; if (param->flags & TP_CONN_MGR_PARAM_FLAG_REQUIRED) - table_settings = table_common_settings; + { + grid_settings = grid_common_settings; + row = row_common++; + } else if (priv->simple) - return; + { + return; + } else - table_settings = table_advanced_settings; + { + grid_settings = grid_advanced_settings; + row = row_advanced++; + } param_name_formatted = account_widget_generic_format_param_name (param->name); - g_object_get (table_settings, "n-rows", &n_rows, NULL); - gtk_table_resize (GTK_TABLE (table_settings), ++n_rows, 2); if (param->dbus_signature[0] == 's') { @@ -771,12 +778,9 @@ accounts_widget_generic_setup (EmpathyAccountWidget *self, gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); g_free (str); - gtk_table_attach (GTK_TABLE (table_settings), - widget, - 0, 1, - n_rows - 1, n_rows, - GTK_FILL, 0, - 0, 0); + gtk_grid_attach (GTK_GRID (grid_settings), + widget, 0, row, 1, 1); + gtk_widget_show (widget); widget = gtk_entry_new (); @@ -786,12 +790,10 @@ accounts_widget_generic_setup (EmpathyAccountWidget *self, G_CALLBACK (gtk_widget_grab_focus), NULL); } - gtk_table_attach (GTK_TABLE (table_settings), - widget, - 1, 2, - n_rows - 1, n_rows, - GTK_FILL | GTK_EXPAND, 0, - 0, 0); + + gtk_grid_attach (GTK_GRID (grid_settings), + widget, 1, row, 1, 1); + gtk_widget_show (widget); } /* int types: ynqiuxt. double type is 'd' */ @@ -828,32 +830,20 @@ accounts_widget_generic_setup (EmpathyAccountWidget *self, gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); g_free (str); - gtk_table_attach (GTK_TABLE (table_settings), - widget, - 0, 1, - n_rows - 1, n_rows, - GTK_FILL, 0, - 0, 0); + gtk_grid_attach (GTK_GRID (grid_settings), + widget, 0, row, 1, 1); gtk_widget_show (widget); widget = gtk_spin_button_new_with_range (minint, maxint, step); - gtk_table_attach (GTK_TABLE (table_settings), - widget, - 1, 2, - n_rows - 1, n_rows, - GTK_FILL | GTK_EXPAND, 0, - 0, 0); + gtk_grid_attach (GTK_GRID (grid_settings), + widget, 1, row, 1, 1); gtk_widget_show (widget); } else if (param->dbus_signature[0] == 'b') { widget = gtk_check_button_new_with_label (param_name_formatted); - gtk_table_attach (GTK_TABLE (table_settings), - widget, - 0, 2, - n_rows - 1, n_rows, - GTK_FILL | GTK_EXPAND, 0, - 0, 0); + gtk_grid_attach (GTK_GRID (grid_settings), + widget, 0, row, 2, 1); gtk_widget_show (widget); } else @@ -1043,16 +1033,16 @@ account_widget_apply_clicked_cb (GtkWidget *button, static void account_widget_setup_generic (EmpathyAccountWidget *self) { - GtkWidget *table_common_settings; - GtkWidget *table_advanced_settings; + GtkWidget *grid_common_settings; + GtkWidget *grid_advanced_settings; - table_common_settings = GTK_WIDGET (gtk_builder_get_object - (self->ui_details->gui, "table_common_settings")); - table_advanced_settings = GTK_WIDGET (gtk_builder_get_object - (self->ui_details->gui, "table_advanced_settings")); + grid_common_settings = GTK_WIDGET (gtk_builder_get_object + (self->ui_details->gui, "grid_common_settings")); + grid_advanced_settings = GTK_WIDGET (gtk_builder_get_object + (self->ui_details->gui, "grid_advanced_settings")); - accounts_widget_generic_setup (self, table_common_settings, - table_advanced_settings); + accounts_widget_generic_setup (self, grid_common_settings, + grid_advanced_settings); g_object_unref (self->ui_details->gui); } @@ -1077,7 +1067,7 @@ account_widget_build_generic (EmpathyAccountWidget *self, GtkWidget *expander_advanced; self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", &priv->table_common_settings, + "grid_common_settings", &priv->grid_common_settings, "vbox_generic_settings", &self->ui_details->widget, "expander_advanced_settings", &expander_advanced, NULL); @@ -1183,7 +1173,7 @@ account_widget_build_external (EmpathyAccountWidget *self, GDesktopAppInfo *desktop_info = NULL; self->ui_details->widget = gtk_vbox_new (FALSE, 6); - priv->table_common_settings = gtk_table_new (1, 2, FALSE); + priv->grid_common_settings = gtk_grid_new (); provider = tp_account_get_storage_provider (account); @@ -1256,7 +1246,7 @@ account_widget_build_external (EmpathyAccountWidget *self, gtk_box_pack_start (GTK_BOX (self->ui_details->widget), bar, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (self->ui_details->widget), - priv->table_common_settings, FALSE, TRUE, 0); + priv->grid_common_settings, FALSE, TRUE, 0); gtk_widget_show_all (self->ui_details->widget); @@ -1271,7 +1261,7 @@ account_widget_build_salut (EmpathyAccountWidget *self, GtkWidget *expander_advanced; self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", &priv->table_common_settings, + "grid_common_settings", &priv->grid_common_settings, "vbox_salut_settings", &self->ui_details->widget, "expander_advanced_settings", &expander_advanced, NULL); @@ -1310,7 +1300,7 @@ account_widget_build_irc (EmpathyAccountWidget *self, else { priv->irc_network_chooser = empathy_account_widget_irc_build (self, - filename, &priv->table_common_settings); + filename, &priv->grid_common_settings); } } @@ -1320,7 +1310,7 @@ account_widget_build_sip (EmpathyAccountWidget *self, { EmpathyAccountWidgetPriv *priv = GET_PRIV (self); empathy_account_widget_sip_build (self, filename, - &priv->table_common_settings); + &priv->grid_common_settings); if (priv->simple) { @@ -1362,7 +1352,7 @@ account_widget_build_msn (EmpathyAccountWidget *self, else { self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_msn_settings", &priv->table_common_settings, + "grid_common_msn_settings", &priv->grid_common_settings, "vbox_msn_settings", &self->ui_details->widget, NULL); @@ -1565,7 +1555,7 @@ account_widget_build_jabber (EmpathyAccountWidget *self, /* Full widget for XMPP, Google Talk and Facebook*/ self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", &priv->table_common_settings, + "grid_common_settings", &priv->grid_common_settings, "vbox_jabber_settings", &self->ui_details->widget, "spinbutton_port", &spinbutton_port, "checkbutton_ssl", &checkbutton_ssl, @@ -1659,7 +1649,7 @@ account_widget_build_icq (EmpathyAccountWidget *self, else { self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", &priv->table_common_settings, + "grid_common_settings", &priv->grid_common_settings, "vbox_icq_settings", &self->ui_details->widget, "spinbutton_port", &spinbutton_port, NULL); @@ -1705,7 +1695,7 @@ account_widget_build_aim (EmpathyAccountWidget *self, else { self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", &priv->table_common_settings, + "grid_common_settings", &priv->grid_common_settings, "vbox_aim_settings", &self->ui_details->widget, "spinbutton_port", &spinbutton_port, NULL); @@ -1752,7 +1742,7 @@ account_widget_build_yahoo (EmpathyAccountWidget *self, else { self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_settings", &priv->table_common_settings, + "grid_common_settings", &priv->grid_common_settings, "vbox_yahoo_settings", &self->ui_details->widget, NULL); @@ -1797,7 +1787,7 @@ account_widget_build_groupwise (EmpathyAccountWidget *self, else { self->ui_details->gui = empathy_builder_get_file (filename, - "table_common_groupwise_settings", &priv->table_common_settings, + "grid_common_groupwise_settings", &priv->grid_common_settings, "vbox_groupwise_settings", &self->ui_details->widget, NULL); -- cgit v1.2.3