* [gentoo-commits] gentoo-x86 commit in x11-misc/rednotebook/files: rednotebook-1.1.1-disable-webkit.patch
@ 2010-08-22 12:42 Markos Chandras (hwoarang)
0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2010-08-22 12:42 UTC (permalink / raw
To: gentoo-commits
hwoarang 10/08/22 12:42:49
Added: rednotebook-1.1.1-disable-webkit.patch
Log:
Version bump
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Revision Changes Path
1.1 x11-misc/rednotebook/files/rednotebook-1.1.1-disable-webkit.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/rednotebook/files/rednotebook-1.1.1-disable-webkit.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/rednotebook/files/rednotebook-1.1.1-disable-webkit.patch?rev=1.1&content-type=text/plain
Index: rednotebook-1.1.1-disable-webkit.patch
===================================================================
Index: rednotebook-1.1.1/rednotebook/gui/browser.py
===================================================================
--- rednotebook-1.1.1.orig/rednotebook/gui/browser.py
+++ rednotebook-1.1.1/rednotebook/gui/browser.py
@@ -40,40 +40,6 @@ from rednotebook.util import filesystem
webkit = None
-def windows_webkit_import():
- global webkit
-
- cwd = os.getcwd()
-
- if filesystem.main_is_frozen():
- gtk_bin_dir = filesystem.app_dir
- else:
- gtk_bin_dir = r'C:\GTK'
-
- try:
- # It seems the dlls are only found if we are in the bin dir
- # during import
- os.chdir(gtk_bin_dir)
- except WindowsError:
- logging.error('Changing dir to "%s" failed' % gtk_bin_dir)
- return
-
- try:
- import webkit
- except ImportError:
- logging.info('webkit not found. For a nicer preview install python-webkit or pywebkitgtk')
- os.chdir(cwd)
-
-if False and sys.platform == 'win32':
- windows_webkit_import()
-else:
- try:
- import webkit
- except ImportError:
- logging.info('webkit not found. For a nicer preview install python-webkit or pywebkitgtk')
-
-
-
def can_print_pdf():
if not webkit:
return False
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-22 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-22 12:42 [gentoo-commits] gentoo-x86 commit in x11-misc/rednotebook/files: rednotebook-1.1.1-disable-webkit.patch Markos Chandras (hwoarang)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox