slackbuilds_ponce/desktop/variety/disable-panoramio.patch
Rodrigo Gimenez f105fc7187 desktop/variety: Added (python library).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-05-06 07:03:44 +07:00

47 lines
2 KiB
Diff

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