Disable GtkRecentManager in private and portable mode
This commit is contained in:
parent
7f37162fe0
commit
cc4fbca8e3
2 changed files with 8 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue