[totem] main: Use popovers for menus
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Use popovers for menus
- Date: Thu, 20 Feb 2014 15:46:10 +0000 (UTC)
commit dd92f10c0151b7354ca56508b5ad74cb935fdbed
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 20 15:55:21 2014 +0100
main: Use popovers for menus
data/controls.ui | 1 +
src/totem-object.c | 3 +++
src/totemmaintoolbar.ui | 1 +
3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/controls.ui b/data/controls.ui
index a5d3f99..7a788b5 100644
--- a/data/controls.ui
+++ b/data/controls.ui
@@ -100,6 +100,7 @@
<property name="receives_default">True</property>
<property name="relief">none</property>
<property name="valign">center</property>
+ <property name="use-popover">True</property>
<style>
<class name="image-button"/>
</style>
diff --git a/src/totem-object.c b/src/totem-object.c
index 8e42000..1c7dd40 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3496,6 +3496,7 @@ totem_callback_connect (TotemObject *totem)
gtk_menu_button_new (),
"emblem-system-symbolic",
GTK_PACK_END);
+ g_object_set (G_OBJECT (totem->gear_button), "use-popover", TRUE, NULL);
menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "playermenu");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
g_signal_connect (G_OBJECT (item), "toggled",
@@ -3506,6 +3507,7 @@ totem_callback_connect (TotemObject *totem)
gtk_menu_button_new (),
"list-add-symbolic",
GTK_PACK_START);
+ g_object_set (G_OBJECT (totem->add_button), "use-popover", TRUE, NULL);
menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "addmenu");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
gtk_widget_show (item);
@@ -3656,6 +3658,7 @@ add_fullscreen_toolbar (TotemObject *totem)
gtk_menu_button_new (),
"emblem-system-symbolic",
GTK_PACK_END);
+ g_object_set (G_OBJECT (item), "use-popover", TRUE, NULL);
menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "playermenu");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
g_signal_connect (G_OBJECT (item), "toggled",
diff --git a/src/totemmaintoolbar.ui b/src/totemmaintoolbar.ui
index 5219d63..a185d42 100644
--- a/src/totemmaintoolbar.ui
+++ b/src/totemmaintoolbar.ui
@@ -119,6 +119,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="label" translatable="yes">Click on items to select them</property>
+ <property name="use-popover">True</property>
<style>
<class name="selection-menu"/>
<class name="text-button"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]