]> git.0d.be Git - empathy.git/commitdiff
account-widget: make the buttons look like normal dialog buttons
authorMarco Barisione <marco.barisione@collabora.co.uk>
Mon, 29 Jul 2013 07:04:15 +0000 (08:04 +0100)
committerMarco Barisione <marco.barisione@collabora.co.uk>
Tue, 20 Aug 2013 10:03:07 +0000 (11:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=699492

tp-account-widgets/tpaw-account-widget.c

index f8b82e39f6b286f8fb2f42c914759d1b6e20bc7c..4b31318815db3c7c46838986f85521ecfe6374db 100644 (file)
@@ -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);