]> spindle.queued.net Git - midori/commitdiff
Remove settings Original Cookies, Last visited pages, Autodetect proxy
authorChristian Dywan <christian@twotoasts.de>
Sun, 4 Jul 2010 21:10:44 +0000 (23:10 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 4 Jul 2010 21:10:44 +0000 (23:10 +0200)
midori/main.c
midori/midori-websettings.c

index f0e4d7810a920f7f3ded9d093746e4fe6995eeca..9da5df2d13610fe63977fb92acc45aa2fb8de396 100644 (file)
@@ -828,7 +828,7 @@ midori_soup_session_prepare (SoupSession*       session,
     soup_session_settings_notify_http_proxy_cb (settings, NULL, session);
     g_signal_connect (settings, "notify::http-proxy",
         G_CALLBACK (soup_session_settings_notify_http_proxy_cb), session);
-    g_signal_connect (settings, "notify::auto-detect-proxy",
+    g_signal_connect (settings, "notify::proxy-type",
         G_CALLBACK (soup_session_settings_notify_http_proxy_cb), session);
 
     #if !WEBKIT_CHECK_VERSION (1, 1, 11)
index 4102bf2bd967d8b1da276c78a9b45ecaeb904a49..122f0a0cc6bcad673e65d7550846b36029f04b33 100644 (file)
@@ -65,7 +65,6 @@ struct _MidoriWebSettings
     gboolean remember_last_visited_pages : 1;
     gboolean remember_last_downloaded_files : 1;
     MidoriProxy proxy_type : 2;
-    gboolean auto_detect_proxy : 1;
     MidoriIdentity identify_as : 3;
 
     gint last_window_width;
@@ -159,16 +158,13 @@ enum
     PROP_FIND_WHILE_TYPING,
     PROP_KINETIC_SCROLLING,
     PROP_ACCEPT_COOKIES,
-    PROP_ORIGINAL_COOKIES_ONLY,
     PROP_MAXIMUM_COOKIE_AGE,
 
-    PROP_REMEMBER_LAST_VISITED_PAGES,
     PROP_MAXIMUM_HISTORY_AGE,
     PROP_REMEMBER_LAST_DOWNLOADED_FILES,
 
     PROP_PROXY_TYPE,
     PROP_HTTP_PROXY,
-    PROP_AUTO_DETECT_PROXY,
     PROP_IDENTIFY_AS,
     PROP_USER_AGENT,
     PROP_PREFERRED_LANGUAGES,
@@ -971,22 +967,6 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      MIDORI_ACCEPT_COOKIES_ALL,
                                      flags));
 
-    /**
-     * MidoriWebSettings:original-cookies-only:
-     *
-     * Accept cookies from the original website only.
-     *
-     * Deprecated: 0.2.3: This value is not used.
-    */
-    g_object_class_install_property (gobject_class,
-                                     PROP_ORIGINAL_COOKIES_ONLY,
-                                     g_param_spec_boolean (
-                                     "original-cookies-only",
-                                     _("Original cookies only"),
-                                     _("Accept cookies from the original website only"),
-                                     FALSE,
-                                     flags));
-
     g_object_class_install_property (gobject_class,
                                      PROP_MAXIMUM_COOKIE_AGE,
                                      g_param_spec_int (
@@ -997,23 +977,6 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      flags));
 
 
-
-    /**
-    * MidoriWebSettings:remember-last-visited-pages:
-    *
-    * Whether the last visited pages are saved.
-    *
-    * Deprecated: 0.2.2
-    */
-    g_object_class_install_property (gobject_class,
-                                     PROP_REMEMBER_LAST_VISITED_PAGES,
-                                     g_param_spec_boolean (
-                                     "remember-last-visited-pages",
-                                     _("Remember last visited pages"),
-                                     _("Whether the last visited pages are saved"),
-                                     TRUE,
-                                     flags));
-
     g_object_class_install_property (gobject_class,
                                      PROP_MAXIMUM_HISTORY_AGE,
                                      g_param_spec_int (
@@ -1060,22 +1023,6 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      NULL,
                                      flags));
 
-    /**
-     * MidoriWebSettings:auto-detect-proxy:
-     *
-     * Whether to detect the proxy server automatically from the environment
-     *
-     * Deprecated: 0.2.5
-     */
-    g_object_class_install_property (gobject_class,
-                                     PROP_AUTO_DETECT_PROXY,
-                                     g_param_spec_boolean (
-                                     "auto-detect-proxy",
-                                     _("Detect proxy server automatically"),
-        _("Whether to detect the proxy server automatically from the environment"),
-                                     TRUE,
-                                     flags));
-
     /**
     * MidoriWebSettings:identify-as:
     *
@@ -1184,7 +1131,6 @@ midori_web_settings_init (MidoriWebSettings* web_settings)
     web_settings->open_popups_in_tabs = TRUE;
     web_settings->remember_last_downloaded_files = TRUE;
     web_settings->kinetic_scrolling = TRUE;
-    web_settings->auto_detect_proxy = TRUE;
 
     g_signal_connect (web_settings, "notify::default-encoding",
                       G_CALLBACK (notify_default_encoding_cb), NULL);
@@ -1506,16 +1452,10 @@ midori_web_settings_set_property (GObject*      object,
     case PROP_ACCEPT_COOKIES:
         web_settings->accept_cookies = g_value_get_enum (value);
         break;
-    case PROP_ORIGINAL_COOKIES_ONLY:
-        web_settings->original_cookies_only = g_value_get_boolean (value);
-        break;
     case PROP_MAXIMUM_COOKIE_AGE:
         web_settings->maximum_cookie_age = g_value_get_int (value);
         break;
 
-    case PROP_REMEMBER_LAST_VISITED_PAGES:
-        web_settings->remember_last_visited_pages = g_value_get_boolean (value);
-        break;
     case PROP_MAXIMUM_HISTORY_AGE:
         web_settings->maximum_history_age = g_value_get_int (value);
         break;
@@ -1525,17 +1465,10 @@ midori_web_settings_set_property (GObject*      object,
 
     case PROP_PROXY_TYPE:
         web_settings->proxy_type = g_value_get_enum (value);
-        web_settings->auto_detect_proxy =
-            web_settings->proxy_type == MIDORI_PROXY_AUTOMATIC
-            ? TRUE : FALSE;
-        g_object_notify (object, "auto-detect-proxy");
     break;
     case PROP_HTTP_PROXY:
         katze_assign (web_settings->http_proxy, g_value_dup_string (value));
         break;
-    case PROP_AUTO_DETECT_PROXY:
-        web_settings->auto_detect_proxy = g_value_get_boolean (value);
-        break;
     case PROP_IDENTIFY_AS:
         web_settings->identify_as = g_value_get_enum (value);
         if (web_settings->identify_as != MIDORI_IDENT_CUSTOM)
@@ -1757,16 +1690,10 @@ midori_web_settings_get_property (GObject*    object,
     case PROP_ACCEPT_COOKIES:
         g_value_set_enum (value, web_settings->accept_cookies);
         break;
-    case PROP_ORIGINAL_COOKIES_ONLY:
-        g_value_set_boolean (value, web_settings->original_cookies_only);
-        break;
     case PROP_MAXIMUM_COOKIE_AGE:
         g_value_set_int (value, web_settings->maximum_cookie_age);
         break;
 
-    case PROP_REMEMBER_LAST_VISITED_PAGES:
-        g_value_set_boolean (value, web_settings->remember_last_visited_pages);
-        break;
     case PROP_MAXIMUM_HISTORY_AGE:
         g_value_set_int (value, web_settings->maximum_history_age);
         break;
@@ -1780,9 +1707,6 @@ midori_web_settings_get_property (GObject*    object,
     case PROP_HTTP_PROXY:
         g_value_set_string (value, web_settings->http_proxy);
         break;
-    case PROP_AUTO_DETECT_PROXY:
-        g_value_set_boolean (value, web_settings->auto_detect_proxy);
-        break;
     case PROP_IDENTIFY_AS:
         g_value_set_enum (value, web_settings->identify_as);
         break;