From: Christian Dywan Date: Sat, 15 Oct 2011 16:23:58 +0000 (+0200) Subject: Don't register recent files in app or private mode X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf8b1d93755cfe82e446909e7ff10448f846c775;p=midori Don't register recent files in app or private mode --- diff --git a/toolbars/midori-transferbar.c b/toolbars/midori-transferbar.c index 4c35388b..56ed20eb 100644 --- a/toolbars/midori-transferbar.c +++ b/toolbars/midori-transferbar.c @@ -169,8 +169,11 @@ midori_transferbar_download_notify_status_cb (WebKitDownload* download, } g_strfreev (fingerprint); if (verified) - gtk_recent_manager_add_item (gtk_recent_manager_get_default (), - webkit_download_get_destination_uri (download)); + { + if (!sokoke_is_app_or_private ()) + 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);