summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-01-29 19:19:39 +0100
committerBastien Nocera <hadess@hadess.net>2014-01-29 19:19:39 +0100
commit3de2f5f23f29f144468e9b61ffc732497d36e5c3 (patch)
tree7cbbd5c1347991ac753b54758138d4b76b866cac
parentfd6873de492568c052e86316e859a684df465868 (diff)
downloadtotem-3de2f5f23f29f144468e9b61ffc732497d36e5c3.tar.gz
main: Fix OSD toolbar button not being square
-rw-r--r--data/controls.ui2
-rw-r--r--src/totem-object.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/data/controls.ui b/data/controls.ui
index 87dfe61e7..9253a5947 100644
--- a/data/controls.ui
+++ b/data/controls.ui
@@ -99,6 +99,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="relief">none</property>
+ <property name="valign">center</property>
<style>
<class name="image-button"/>
</style>
@@ -143,6 +144,7 @@
<property name="relief">none</property>
<property name="focus_on_click">False</property>
<property name="orientation">vertical</property>
+ <property name="valign">center</property>
<property name="icons">audio-volume-muted-symbolic
audio-volume-high-symbolic
audio-volume-low-symbolic
diff --git a/src/totem-object.c b/src/totem-object.c
index 78b1f986b..665d0714a 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3545,6 +3545,7 @@ create_control_button (TotemObject *totem,
button = gtk_button_new ();
image = gtk_image_new ();
gtk_button_set_image (GTK_BUTTON (button), image);
+ gtk_widget_set_valign (GTK_WIDGET (button), GTK_ALIGN_CENTER);
gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");
if (g_str_equal (action_name, "play")) {
g_object_set (G_OBJECT (image),