[totem] main: Fix OSD toolbar button not being square



commit 3de2f5f23f29f144468e9b61ffc732497d36e5c3
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 29 19:19:39 2014 +0100

    main: Fix OSD toolbar button not being square

 data/controls.ui   |    2 ++
 src/totem-object.c |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/data/controls.ui b/data/controls.ui
index 87dfe61..9253a59 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 78b1f98..665d071 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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]