From 20dac03535bc9751199674ef9b949d557b0e2de0 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 28 Mar 2014 01:13:34 +0100 Subject: main: Switch to the "player" view when opening a file Instead of only when we start playing. --- src/totem-object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/totem-object.c') diff --git a/src/totem-object.c b/src/totem-object.c index 67120265a..aceee3af6 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -1357,7 +1357,6 @@ totem_object_play (TotemObject *totem) if (bacon_video_widget_is_playing (totem->bvw) != FALSE) return; - totem_object_set_main_page (totem, "player"); retval = bacon_video_widget_play (totem->bvw, &err); play_pause_set_label (totem, retval ? STATE_PLAYING : STATE_STOPPED); @@ -1804,6 +1803,8 @@ totem_object_set_mrl (TotemObject *totem, play_pause_set_label (totem, STATE_PAUSED); emit_file_opened (totem, totem->mrl); + + totem_object_set_main_page (totem, "player"); } update_buttons (totem); -- cgit v1.2.1