From: Marco Barisione Date: Mon, 29 Jul 2013 07:04:15 +0000 (+0100) Subject: account-widget: make the buttons look like normal dialog buttons X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=b16515893aeebd0dbd1623c6928f467cc0a17b63 account-widget: make the buttons look like normal dialog buttons https://bugzilla.gnome.org/show_bug.cgi?id=699492 --- diff --git a/tp-account-widgets/tpaw-account-widget.c b/tp-account-widgets/tpaw-account-widget.c index f8b82e39..4b313188 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);