From 7e5bb20dfc1082d27e706fa1f0e898e2fca799b2 Mon Sep 17 00:00:00 2001
From: Xan Lopez <xan@igalia.com>
Date: Thu, 12 Apr 2012 17:15:45 +0200
Subject: Add a 'crashed' option to the session restore policy

With this policy the session will only be restored if the application
has exited unexpectedly, but not if the user manually closes it.

There are no code changes needed for this to work, having a (valid)
different value than always/never in the setting makes things just
work.
---
 lib/ephy-prefs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h
index bc95b3564..9c74deb39 100644
--- a/lib/ephy-prefs.h
+++ b/lib/ephy-prefs.h
@@ -39,7 +39,8 @@ typedef enum
 typedef enum
 {
   EPHY_PREFS_RESTORE_SESSION_POLICY_ALWAYS,
-  EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER
+  EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER,
+  EPHY_PREFS_RESTORE_SESSION_POLICY_CRASHED
 } EphyPrefsRestoreSessionPolicy;
 
 typedef enum
-- 
cgit