[totem] Add a fullscreen button to the main UI



commit 408a322e45638c7b916df2a02a21b303f869342c
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 6 15:27:33 2010 +0000

    Add a fullscreen button to the main UI
    
    https://bugzilla.gnome.org/show_bug.cgi?id=603178

 src/totem-object.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 703669b..dde2bae 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -4011,6 +4011,7 @@ totem_callback_connect (Totem *totem)
 	/* Controls */
 	box = GTK_BOX (gtk_builder_get_object (totem->xml, "tmw_buttons_hbox"));
 
+	/* Previous */
 	action = gtk_action_group_get_action (totem->main_action_group,
 			"previous-chapter");
 	item = gtk_action_create_tool_item (action);
@@ -4020,6 +4021,7 @@ totem_callback_connect (Totem *totem)
 			_("Previous Chapter/Movie"));
 	gtk_box_pack_start (box, item, FALSE, FALSE, 0);
 
+	/* Play/Pause */
 	action = gtk_action_group_get_action (totem->main_action_group, "play");
 	item = gtk_action_create_tool_item (action);
 	atk_object_set_name (gtk_widget_get_accessible (item),
@@ -4028,6 +4030,7 @@ totem_callback_connect (Totem *totem)
  					_("Play / Pause"));
 	gtk_box_pack_start (box, item, FALSE, FALSE, 0);
 
+	/* Next */
 	action = gtk_action_group_get_action (totem->main_action_group,
 			"next-chapter");
 	item = gtk_action_create_tool_item (action);
@@ -4037,6 +4040,20 @@ totem_callback_connect (Totem *totem)
 			_("Next Chapter/Movie"));
 	gtk_box_pack_start (box, item, FALSE, FALSE, 0);
 
+	/* Separator */
+	item = GTK_WIDGET(gtk_separator_tool_item_new ());
+	gtk_box_pack_start (box, item, FALSE, FALSE, 0);
+
+	/* Fullscreen button */
+	action = gtk_action_group_get_action (totem->main_action_group,
+			"fullscreen");
+	item = gtk_action_create_tool_item (action);
+	gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (item),
+					_("Fullscreen"));
+	atk_object_set_name (gtk_widget_get_accessible (item),
+			_("Fullscreen"));
+	gtk_box_pack_start (box, item, FALSE, FALSE, 0);
+
 	/* Sidebar button (Drag'n'Drop) */
 	box = GTK_BOX (gtk_builder_get_object (totem->xml, "tmw_sidebar_button_hbox"));
 	action = gtk_action_group_get_action (totem->main_action_group, "sidebar");



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