diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-11 00:46:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-11 00:50:11 +0800 |
commit | 0ed9a6492a19c767ac838baf63dd753f180688e2 (patch) | |
tree | a03cb319cd23aa63898281ba3301c7ddd7053d5f /mail | |
parent | 8e1929e62b2c6d6e12ac18a614a0e0bfa0b9accf (diff) | |
download | gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.tar gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.tar.gz gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.tar.bz2 gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.tar.lz gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.tar.xz gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.tar.zst gsoc2013-evolution-0ed9a6492a19c767ac838baf63dd753f180688e2.zip |
EMSubscriptionEditor: Use GtkGrid instead of GtkTable.
Long as I'm hacking on this widget for a different issue, may as well
get this out of the way. We'll have to do it eventually anyway.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-subscription-editor.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c index bb4a74aa39..308c06bb29 100644 --- a/mail/em-subscription-editor.c +++ b/mail/em-subscription-editor.c @@ -1695,18 +1695,17 @@ em_subscription_editor_init (EMSubscriptionEditor *editor) container = box = widget; - widget = gtk_table_new (2, 3, FALSE); - gtk_table_set_col_spacings (GTK_TABLE (widget), 6); - gtk_table_set_row_spacings (GTK_TABLE (widget), 6); + widget = gtk_grid_new (); + gtk_grid_set_row_spacing (GTK_GRID (widget), 6); + gtk_grid_set_column_spacing (GTK_GRID (widget), 6); gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0); gtk_widget_show (widget); container = widget; widget = gtk_combo_box_text_new (); - gtk_table_attach ( - GTK_TABLE (container), widget, - 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0); + gtk_widget_set_hexpand (widget, TRUE); + gtk_grid_attach (GTK_GRID (container), widget, 1, 0, 1, 1); editor->priv->combo_box = widget; gtk_widget_show (widget); @@ -1718,9 +1717,7 @@ em_subscription_editor_init (EMSubscriptionEditor *editor) gtk_label_set_mnemonic_widget ( GTK_LABEL (widget), editor->priv->combo_box); gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5); - gtk_table_attach ( - GTK_TABLE (container), widget, - 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); + gtk_grid_attach (GTK_GRID (container), widget, 0, 0, 1, 1); gtk_widget_show (widget); widget = gtk_entry_new (); @@ -1733,9 +1730,8 @@ em_subscription_editor_init (EMSubscriptionEditor *editor) gtk_entry_set_icon_sensitive ( GTK_ENTRY (widget), GTK_ENTRY_ICON_SECONDARY, FALSE); - gtk_table_attach ( - GTK_TABLE (container), widget, - 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0); + gtk_widget_set_hexpand (widget, TRUE); + gtk_grid_attach (GTK_GRID (container), widget, 1, 1, 1, 1); editor->priv->entry = widget; gtk_widget_show (widget); @@ -1751,9 +1747,7 @@ em_subscription_editor_init (EMSubscriptionEditor *editor) gtk_label_set_mnemonic_widget ( GTK_LABEL (widget), editor->priv->entry); gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5); - gtk_table_attach ( - GTK_TABLE (container), widget, - 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0); + gtk_grid_attach (GTK_GRID (container), widget, 0, 1, 1, 1); gtk_widget_show (widget); container = box; |