diff options
author | Lapo Calamandrei <calamandrei@gmail.com> | 2014-07-16 19:35:29 +0200 |
---|---|---|
committer | Lapo Calamandrei <calamandrei@gmail.com> | 2014-07-16 19:35:29 +0200 |
commit | 4053ee0cca04502280df24554292d43a205c9f67 (patch) | |
tree | d869a065febb1545fbedb0406324cb731783c214 | |
parent | 4af59dbd98372d1b6634831804838780344b1c76 (diff) | |
download | gtk+-4053ee0cca04502280df24554292d43a205c9f67.tar.gz |
GtkStackSwitcher: center the button child
Set button child halign to GTK_ALIGN_CENTER since I need it to style
the needs-attention class, see:
https://bugzilla.gnome.org/show_bug.cgi?id=707153
-rw-r--r-- | gtk/gtkstackswitcher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c index d5b7ef1f89..418f2fe8ef 100644 --- a/gtk/gtkstackswitcher.c +++ b/gtk/gtkstackswitcher.c @@ -137,6 +137,7 @@ rebuild_child (GtkWidget *self, if (button_child) { + gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER); gtk_widget_show_all (button_child); gtk_container_add (GTK_CONTAINER (self), button_child); } |