meld r1351 - trunk
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1351 - trunk
- Date: Wed, 15 Apr 2009 22:22:42 +0000 (UTC)
Author: vincele
Date: Wed Apr 15 22:22:41 2009
New Revision: 1351
URL: http://svn.gnome.org/viewvc/meld?rev=1351&view=rev
Log:
Make Drag'n'drop support conditional upon gnomevfs availability.
Modified:
trunk/meldapp.py
Modified: trunk/meldapp.py
==============================================================================
--- trunk/meldapp.py (original)
+++ trunk/meldapp.py Wed Apr 15 22:22:41 2009
@@ -25,7 +25,13 @@
import gtk.glade
import gobject
import pango
-import gnomevfs
+
+# Drag'N'Drop support needs gnomevfs
+try:
+ import gnomevfs
+ gnomevfs_available = True
+except ImportError:
+ gnomevfs_available = False
# project
import paths
@@ -563,7 +569,8 @@
gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP,
[ ('text/uri-list', 0, 0) ],
gtk.gdk.ACTION_COPY)
- self.widget.connect('drag_data_received', self.on_widget_drag_data_received)
+ if gnomevfs_available:
+ self.widget.connect('drag_data_received', self.on_widget_drag_data_received)
self.toolbar.set_style( self.prefs.get_toolbar_style() )
self.prefs.notify_add(self.on_preference_changed)
self.idle_hooked = 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]