diff options
author | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-07-29 15:04:15 +0800 |
---|---|---|
committer | Marco Barisione <marco.barisione@collabora.co.uk> | 2013-08-20 18:03:07 +0800 |
commit | b16515893aeebd0dbd1623c6928f467cc0a17b63 (patch) | |
tree | fa9739856f0b361638e9be408bd363ee4b1b7dee /tp-account-widgets | |
parent | 7385a4cd1409c00a6237187e72f90e50569fe0d4 (diff) | |
download | gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.tar gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.tar.gz gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.tar.bz2 gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.tar.lz gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.tar.xz gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.tar.zst gsoc2013-empathy-b16515893aeebd0dbd1623c6928f467cc0a17b63.zip |
account-widget: make the buttons look like normal dialog buttons
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tp-account-widgets')
-rw-r--r-- | tp-account-widgets/tpaw-account-widget.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tp-account-widgets/tpaw-account-widget.c b/tp-account-widgets/tpaw-account-widget.c index f8b82e39f..4b3131881 100644 --- a/tp-account-widgets/tpaw-account-widget.c +++ b/tp-account-widgets/tpaw-account-widget.c @@ -2010,9 +2010,13 @@ do_constructed (GObject *obj) account_manager_ready_cb, self); /* handle apply and cancel button */ - self->priv->hbox_buttons = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); - - gtk_box_set_homogeneous (GTK_BOX (self->priv->hbox_buttons), TRUE); + self->priv->hbox_buttons = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); + gtk_button_box_set_layout (GTK_BUTTON_BOX (self->priv->hbox_buttons), + GTK_BUTTONBOX_END); + /* Hard code the default spacing as we cannot easily get this property + * as the widget is not in a GtkDialog yet (and it could end up packed + * in a non-GtkDialog window anyway */ + gtk_box_set_spacing (GTK_BOX (self->priv->hbox_buttons), 6); self->priv->cancel_button = gtk_button_new_from_stock (GTK_STOCK_CLOSE); |