summaryrefslogtreecommitdiff
path: root/gtk/gtkbbox.h
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2015-07-08 16:36:07 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2015-07-14 15:12:56 +0200
commit2dda89cbd52e09cfbc24a9139caa7a65a5f73f2c (patch)
tree962c99450398cae89637c4d0103a55b27341364b /gtk/gtkbbox.h
parent0f479deb5eb90fe131a91b7e6d0a8df7f93fec2a (diff)
downloadgtk+-2dda89cbd52e09cfbc24a9139caa7a65a5f73f2c.tar.gz
GtkButtonBox: remove spacing when buttons are linked
GtkButtonBox adds the "linked" class to its style context when its layout is set to GTK_BUTTONBOX_EXPAND. It shouldn't ever make sense to have spacing between buttons in that case, as themes generally draw linked elements with a continuous border. Thus, always set spacing to 0 and ignore GtkDialog's button-spacing style property when the layout is set to EXPAND. Also remove the now-redundant css rules which set button-spacing to 0 for message dialogs. https://bugzilla.gnome.org/show_bug.cgi?id=752131
Diffstat (limited to 'gtk/gtkbbox.h')
-rw-r--r--gtk/gtkbbox.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkbbox.h b/gtk/gtkbbox.h
index 46f1e59de0..a191feb3ca 100644
--- a/gtk/gtkbbox.h
+++ b/gtk/gtkbbox.h
@@ -81,7 +81,10 @@ struct _GtkButtonBoxClass
* @GTK_BUTTONBOX_END: Buttons are grouped towards the end of the box,
* (on the right for a HBox, or the bottom for a VBox).
* @GTK_BUTTONBOX_CENTER: Buttons are centered in the box. Since 2.12.
- * @GTK_BUTTONBOX_EXPAND: Buttons expand to fill the box. Since 3.12.
+ * @GTK_BUTTONBOX_EXPAND: Buttons expand to fill the box. This entails giving
+ * buttons a "linked" appearance, making button sizes homogeneous, and
+ * setting spacing to 0 (same as calling gtk_box_set_homogeneous() and
+ * gtk_box_set_spacing() manually). Since 3.12.
*
* Used to dictate the style that a #GtkButtonBox uses to layout the buttons it
* contains.