GtkButtonBox: remove spacing when buttons are linked
authorLars Uebernickel <lars.uebernickel@canonical.com>
Wed, 8 Jul 2015 14:36:07 +0000 (16:36 +0200)
committerLars Uebernickel <lars.uebernickel@canonical.com>
Tue, 14 Jul 2015 13:12:56 +0000 (15:12 +0200)
commit2dda89cbd52e09cfbc24a9139caa7a65a5f73f2c
tree962c99450398cae89637c4d0103a55b27341364b
parent0f479deb5eb90fe131a91b7e6d0a8df7f93fec2a
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
gtk/gtkbbox.c
gtk/gtkbbox.h
gtk/gtkdialog.c
gtk/theme/Adwaita/_common.scss
gtk/theme/HighContrast/_common.scss