[gedit/gnome-3-0] snippets: use list_targets instead of direct access



commit e39946e1fd5ef0ebe03e38fc571dc734edf7dc89
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jun 28 23:54:10 2011 +0200

    snippets: use list_targets instead of direct access

 plugins/snippets/snippets/document.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index 4c6c284..6afe35d 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -858,7 +858,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
                 return not (x < rect.x or x > rect.x + rect.width or y < rect.y or y > rect.y + rect.height)
 
         def on_drag_data_received(self, view, context, x, y, data, info, timestamp):
-                if not (Gtk.targets_include_uri(context.targets) and data.data and self.in_bounds(x, y)):
+                if not (Gtk.targets_include_uri(context.list_targets()) and data.data and self.in_bounds(x, y)):
                         return
 
                 if not self.view.get_editable():



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]