[totem] main: Add preference for whether to save the session



commit ffb803c6baca0868f3f563d47c866ea76d913ace
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 11 14:04:51 2013 +0100

    main: Add preference for whether to save the session

 data/preferences.ui     |    4 ++--
 src/totem-preferences.c |    7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index fa3f997..0b7e976 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -217,10 +217,10 @@
                      <property name="right_padding">0</property>
 
                      <child>
-                           <object class="GtkCheckButton" id="tpw_remember_position_checkbutton">
+                           <object class="GtkCheckButton" id="tpw_save_session_checkbutton">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="label" translatable="yes">Start playing files from last 
position</property>
+                             <property name="label" translatable="yes">Remember last played movies</property>
                              <property name="use_underline">True</property>
                              <property name="relief">GTK_RELIEF_NORMAL</property>
                              <property name="focus_on_click">True</property>
diff --git a/src/totem-preferences.c b/src/totem-preferences.c
index a305054..5db656e 100644
--- a/src/totem-preferences.c
+++ b/src/totem-preferences.c
@@ -315,10 +315,9 @@ totem_setup_preferences (Totem *totem)
         g_signal_connect (totem->prefs, "destroy",
                           G_CALLBACK (gtk_widget_destroyed), &totem->prefs);
 
-       /* Remember position */
-       item = POBJ ("tpw_remember_position_checkbutton");
-       g_settings_bind (totem->settings, "remember-position", item, "active", G_SETTINGS_BIND_DEFAULT);
-       g_settings_bind (totem->settings, "remember-position", totem, "remember-position", 
G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY);
+       /* Save session on exit */
+       item = POBJ ("tpw_save_session_checkbutton");
+       g_settings_bind (totem->settings, "save-playback-state", item, "active", G_SETTINGS_BIND_DEFAULT);
 
        /* Screensaver audio locking */
        lock_screensaver_on_audio = g_settings_get_boolean (totem->settings, "lock-screensaver-on-audio");


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