]> spindle.queued.net Git - midori/commitdiff
Disable GtkRecentManager in private and portable mode
authorChristian Dywan <christian@twotoasts.de>
Mon, 27 Aug 2012 20:27:48 +0000 (22:27 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 27 Aug 2012 20:27:48 +0000 (22:27 +0200)
midori/main.c
toolbars/midori-transferbar.c

index abce0a21bc5b904bfe3a799b585394ccfc07a1ee..2e4ef811a23b7bd9a175e30d6391b846cac62bf5 100644 (file)
@@ -2210,12 +2210,18 @@ main (int    argc,
                           NULL);
             #endif
 
+            g_object_set (gtk_settings_get_default (),
+                "gtk-recent-files-max-age", 0, NULL);
             midori_paths_init (MIDORI_RUNTIME_MODE_PRIVATE, "private://");
         }
         else if (webapp)
             midori_paths_init (MIDORI_RUNTIME_MODE_APP, config ? config : "app://");
         else if (portable)
+        {
+            g_object_set (gtk_settings_get_default (),
+                "gtk-recent-files-max-age", 0, NULL);
             midori_paths_init (MIDORI_RUNTIME_MODE_PORTABLE, "portable://");
+        }
 
         midori_load_soup_session (settings);
         if (block_uris)
index 64b9fc8d89800a358838c365e917369642ce21f8..5896fa104d1a94e05ce080e5fc398e5df52dc963 100644 (file)
@@ -158,11 +158,8 @@ midori_transferbar_download_notify_status_cb (WebKitDownload* download,
             }
             g_free (fingerprint);
             if (verified)
-            {
-                if (!midori_paths_is_readonly ())
-                    gtk_recent_manager_add_item (gtk_recent_manager_get_default (),
-                        webkit_download_get_destination_uri (download));
-            }
+                 gtk_recent_manager_add_item (gtk_recent_manager_get_default (),
+                    webkit_download_get_destination_uri (download));
             else
                 gtk_image_set_from_stock (GTK_IMAGE (icon),
                     GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_MENU);