[totem] main: Save session earlier



commit 7fbc6da76c024a95d9ad63ad185856a0632a2161
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 11 15:06:13 2013 +0100

    main: Save session earlier
    
    So that the video widget still exists and we can query the
    current position.

 src/totem-object.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 148a77f..15cf9b6 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1072,6 +1072,8 @@ totem_object_action_exit (TotemObject *totem)
        if (display != NULL)
                gdk_display_sync (display);
 
+       totem_session_save (totem);
+
        if (totem->bvw) {
                totem_action_save_size (totem);
                bacon_video_widget_close (totem->bvw);
@@ -1080,8 +1082,6 @@ totem_object_action_exit (TotemObject *totem)
        totem_action_save_state (totem, page_id);
        g_free (page_id);
 
-       totem_session_save (totem);
-
        totem_sublang_exit (totem);
        totem_destroy_file_filters ();
 


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