[totem] main: Make fullscreen button flat
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Make fullscreen button flat
- Date: Tue, 30 Apr 2013 13:35:01 +0000 (UTC)
commit 879c0692cbf07d774955629bf1bbf046ae8ad4c4
Author: Bastien Nocera <hadess hadess net>
Date: Tue Apr 30 15:28:17 2013 +0200
main: Make fullscreen button flat
data/controls.ui | 15 ++++++++++-----
src/totem-object.c | 4 +++-
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/data/controls.ui b/data/controls.ui
index 24f2ce1..9f40327 100644
--- a/data/controls.ui
+++ b/data/controls.ui
@@ -80,16 +80,21 @@
</packing>
</child>
<child>
- <object class="GtkToolButton" id="fullscreen_button">
+ <object class="GtkToolItem" id="fullscreen_toolbutton">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="tooltip_text" translatable="yes">Fullscreen</property>
- <property name="action_name">app.fullscreen</property>
- <property name="label" translatable="yes">toolbutton1</property>
- <property name="use_underline">True</property>
+ <child>
+ <object class="GtkButton" id="fullscreen_button">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="relief">none</property>
+ </object>
+ </child>
</object>
<packing>
<property name="expand">False</property>
+ <property name="homogeneous">True</property>
</packing>
</child>
<child>
diff --git a/src/totem-object.c b/src/totem-object.c
index 14f8540..79495f2 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3772,8 +3772,10 @@ totem_callback_connect (TotemObject *totem)
/* Fullscreen button */
item = g_object_get_data (totem->controls, "fullscreen_button");
+ image = gtk_image_new ();
+ gtk_button_set_image (GTK_BUTTON (item), image);
g_object_bind_property_full (totem, "fullscreen",
- item, "icon-name",
+ image, "icon-name",
G_BINDING_SYNC_CREATE,
fullscreen_button_image_sync,
NULL, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]