[totem] main: Switch to the "player" view when opening a file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Switch to the "player" view when opening a file
- Date: Fri, 28 Mar 2014 00:17:13 +0000 (UTC)
commit 20dac03535bc9751199674ef9b949d557b0e2de0
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 28 01:13:34 2014 +0100
main: Switch to the "player" view when opening a file
Instead of only when we start playing.
src/totem-object.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 6712026..aceee3a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]