[totem] main: Add cogwheel menu to player section
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Add cogwheel menu to player section
- Date: Wed, 8 May 2013 10:37:12 +0000 (UTC)
commit 605ea3a5d6f19570e2964cd4970f7b3e76a8b504
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 7 19:01:58 2013 +0200
main: Add cogwheel menu to player section
data/totem.ui | 5 +++++
src/totem-object.c | 7 +++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/data/totem.ui b/data/totem.ui
index 7753bb0..3725193 100644
--- a/data/totem.ui
+++ b/data/totem.ui
@@ -56,6 +56,11 @@
</section>
</menu>
+<menu id="playermenu">
+ <section>
+ </section>
+</menu>
+
<object class="GtkUIManager" id="totem-ui-manager">
<child>
<object class="GtkActionGroup" id="main-action-group">
diff --git a/src/totem-object.c b/src/totem-object.c
index 36feafe..15bfae0 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3819,6 +3819,7 @@ totem_callback_connect (TotemObject *totem)
GtkBox *box;
GAction *gaction;
AtkObject *accessible;
+ GMenuModel *menu;
/* Menu items */
gaction = g_action_map_lookup_action (G_ACTION_MAP (totem), "repeat");
@@ -3866,6 +3867,12 @@ totem_callback_connect (TotemObject *totem)
g_signal_connect (totem->seekadj, "value-changed",
G_CALLBACK (seek_slider_changed_cb), totem);
+ /* Cog wheel */
+ item = g_object_get_data (bacon_video_widget_get_header_object (totem->bvw),
+ "button");
+ menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "playermenu");
+ gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
+
/* Sidebar button (Drag'n'Drop) */
action = gtk_action_group_get_action (totem->main_action_group, "sidebar");
item = gtk_toggle_button_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]