diff options
Diffstat (limited to 'desktop/variety/disable-panoramio.patch')
-rw-r--r-- | desktop/variety/disable-panoramio.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/desktop/variety/disable-panoramio.patch b/desktop/variety/disable-panoramio.patch new file mode 100644 index 0000000000..641119859e --- /dev/null +++ b/desktop/variety/disable-panoramio.patch @@ -0,0 +1,47 @@ +diff -Naur variety-0.6.3.orig/variety/PreferencesVarietyDialog.py variety-0.6.3/variety/PreferencesVarietyDialog.py +--- variety-0.6.3.orig/variety/PreferencesVarietyDialog.py 2016-11-01 19:59:39.000000000 +0100 ++++ variety-0.6.3/variety/PreferencesVarietyDialog.py 2017-01-25 21:53:29.419376574 +0100 +@@ -32,7 +32,6 @@ + from variety.AddFlickrDialog import AddFlickrDialog + from variety.AddMediaRssDialog import AddMediaRssDialog + from variety.AddRedditDialog import AddRedditDialog +-from variety.AddPanoramioDialog import AddPanoramioDialog + from variety.EditFavoriteOperationsDialog import EditFavoriteOperationsDialog + from variety.SmartFeaturesConfirmationDialog import SmartFeaturesConfirmationDialog + from variety.LoginOrRegisterDialog import LoginOrRegisterDialog +@@ -64,7 +63,6 @@ + EDITABLE_TYPES = [ + Options.SourceType.FLICKR, + Options.SourceType.MEDIA_RSS, +- Options.SourceType.PANORAMIO, + Options.SourceType.WALLHAVEN, + Options.SourceType.REDDIT, + ] +@@ -381,7 +379,6 @@ + '-', + (_("Flickr"), self.on_add_flickr_clicked), + (_("Wallhaven.cc"), self.on_add_wallhaven_clicked), +- (_("Panoramio"), self.on_add_panoramio_clicked), + (_("Reddit"), self.on_add_reddit_clicked), + (_("Media RSS"), self.on_add_mediarss_clicked), + ] +@@ -672,8 +669,6 @@ + self.dialog = AddRedditDialog() + elif type == Options.SourceType.MEDIA_RSS: + self.dialog = AddMediaRssDialog() +- elif type == Options.SourceType.PANORAMIO: +- self.dialog = AddPanoramioDialog() + + self.dialog.set_edited_row(edited_row) + self.show_dialog(self.dialog) +@@ -786,9 +781,6 @@ + def on_add_wallhaven_clicked(self, widget=None): + self.show_dialog(AddWallhavenDialog()) + +- def on_add_panoramio_clicked(self, widget=None): +- self.show_dialog(AddPanoramioDialog()) +- + def show_dialog(self, dialog): + self.dialog = dialog + self.dialog.parent = self + |