openbsd-ports/graphics/mirage/patches/patch-mirage_py
ajacoutot cadde759d0 Import mirage-0.9.5.2.
Mirage is a fast and simple GTK+ image viewer.
<...>

Make the Makefile unreadable by adding spaces around `=' as requested
by fgsch@ to please espie@.

with help from and ok fgsch@
2011-03-29 07:07:12 +00:00

44 lines
2.0 KiB
Plaintext

$OpenBSD: patch-mirage_py,v 1.1.1.1 2011/03/29 07:07:12 ajacoutot Exp $
--- mirage.py.orig Sun Feb 13 23:40:05 2011
+++ mirage.py Mon Mar 28 08:50:08 2011
@@ -157,7 +157,7 @@ class Base:
self.preloading_images = True
self.action_names = ["Open in GIMP", "Create Thumbnail", "Create Thumbnails", "Move to Favorites"]
self.action_shortcuts = ["<Control>e", "<Alt>t", "<Control><Alt>t", "<Control><Alt>f"]
- self.action_commands = ["gimp-remote-2.4 %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
+ self.action_commands = ["gimp-remote %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
self.action_batch = [False, False, True, False]
self.onload_cmd = None
self.searching_for_images = False
@@ -2970,26 +2970,11 @@ class Base:
def browser_load(self, docslink):
try:
- pid = subprocess.Popen(["gnome-open", docslink]).pid
+ pid = subprocess.Popen(["xdg-open", docslink]).pid
except:
- try:
- pid = subprocess.Popen(["exo-open", docslink]).pid
- except:
- try:
- pid = subprocess.Popen(["kfmclient", "openURL", docslink]).pid
- except:
- try:
- pid = subprocess.Popen(["firefox", docslink]).pid
- except:
- try:
- pid = subprocess.Popen(["mozilla", docslink]).pid
- except:
- try:
- pid = subprocess.Popen(["opera", docslink]).pid
- except:
- error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _('Unable to launch a suitable browser.'))
- error_dialog.run()
- error_dialog.destroy()
+ error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _('Unable to launch a suitable browser.'))
+ error_dialog.run()
+ error_dialog.destroy()
def close_about(self, event, data=None):
self.about_dialog.hide()