aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-01 05:02:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-01 05:03:28 +0800
commitbbe0e117ac11c020719712b108dd0c0a9493ca7b (patch)
treec9e4a61f9ae7aa9c5e0a6757dd4d4895c36d5879 /mail
parent245ef883d97ec544306ae6ca953ce68b59cb80d9 (diff)
downloadgsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.tar
gsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.tar.gz
gsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.tar.bz2
gsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.tar.lz
gsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.tar.xz
gsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.tar.zst
gsoc2013-evolution-bbe0e117ac11c020719712b108dd0c0a9493ca7b.zip
EMailAccountManager: Inherit from GtkGrid.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-account-manager.c20
-rw-r--r--mail/e-mail-account-manager.h4
2 files changed, 9 insertions, 15 deletions
diff --git a/mail/e-mail-account-manager.c b/mail/e-mail-account-manager.c
index 8acb62d902..19d5d369c0 100644
--- a/mail/e-mail-account-manager.c
+++ b/mail/e-mail-account-manager.c
@@ -58,7 +58,7 @@ static guint signals[LAST_SIGNAL];
G_DEFINE_TYPE (
EMailAccountManager,
e_mail_account_manager,
- GTK_TYPE_TABLE)
+ GTK_TYPE_GRID)
static void
mail_account_manager_add_cb (EMailAccountManager *manager)
@@ -392,9 +392,7 @@ mail_account_manager_constructed (GObject *object)
/* We disconnect the handler in dispose(). */
manager->priv->row_changed_handler_id = handler_id;
- gtk_table_resize (GTK_TABLE (manager), 2, 2);
- gtk_table_set_col_spacings (GTK_TABLE (manager), 6);
- gtk_table_set_row_spacings (GTK_TABLE (manager), 0);
+ gtk_grid_set_column_spacing (GTK_GRID (manager), 6);
container = GTK_WIDGET (manager);
@@ -404,9 +402,9 @@ mail_account_manager_constructed (GObject *object)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (
GTK_SCROLLED_WINDOW (widget), GTK_SHADOW_IN);
- gtk_table_attach (
- GTK_TABLE (container), widget, 0, 1, 0, 1,
- GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
+ gtk_widget_set_hexpand (widget, TRUE);
+ gtk_widget_set_vexpand (widget, TRUE);
+ gtk_grid_attach (GTK_GRID (container), widget, 0, 0, 1, 1);
gtk_widget_show (widget);
container = widget;
@@ -445,9 +443,7 @@ mail_account_manager_constructed (GObject *object)
widget = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (
GTK_FRAME (widget), GTK_SHADOW_IN);
- gtk_table_attach (
- GTK_TABLE (container), widget,
- 0, 1, 1, 2, GTK_FILL, 0, 0, 0);
+ gtk_grid_attach (GTK_GRID (container), widget, 0, 1, 1, 1);
gtk_widget_show (widget);
container = widget;
@@ -481,9 +477,7 @@ mail_account_manager_constructed (GObject *object)
gtk_button_box_set_layout (
GTK_BUTTON_BOX (widget), GTK_BUTTONBOX_START);
gtk_box_set_spacing (GTK_BOX (widget), 6);
- gtk_table_attach (
- GTK_TABLE (container), widget,
- 1, 2, 0, 2, 0, GTK_FILL, 0, 0);
+ gtk_grid_attach (GTK_GRID (container), widget, 1, 0, 1, 2);
gtk_widget_show (widget);
container = widget;
diff --git a/mail/e-mail-account-manager.h b/mail/e-mail-account-manager.h
index 2ae3ad519a..36ba54288a 100644
--- a/mail/e-mail-account-manager.h
+++ b/mail/e-mail-account-manager.h
@@ -49,12 +49,12 @@ typedef struct _EMailAccountManagerClass EMailAccountManagerClass;
typedef struct _EMailAccountManagerPrivate EMailAccountManagerPrivate;
struct _EMailAccountManager {
- GtkTable parent;
+ GtkGrid parent;
EMailAccountManagerPrivate *priv;
};
struct _EMailAccountManagerClass {
- GtkTableClass parent_class;
+ GtkGridClass parent_class;
/* Signals */
void (*add_account) (EMailAccountManager *manager);