[gnote] BugzillaAddin: Do not check the target of DND'ed data



commit e5955e1833bc7286fe79f1544bb1d4b1b3c221b8
Author: Debarshi Ray <debarshir src gnome org>
Date:   Mon Dec 28 21:24:51 2009 +0200

    BugzillaAddin: Do not check the target of DND'ed data
    
    Fixes: https://bugzilla.gnome.org/604367

 src/addins/bugzilla/bugzillanoteaddin.cpp |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/addins/bugzilla/bugzillanoteaddin.cpp b/src/addins/bugzilla/bugzillanoteaddin.cpp
index 60f03d7..71fe35a 100644
--- a/src/addins/bugzilla/bugzillanoteaddin.cpp
+++ b/src/addins/bugzilla/bugzillanoteaddin.cpp
@@ -144,18 +144,8 @@ namespace bugzilla {
                                                 guint, guint time)
   {
     DBG_OUT("Bugzilla.OnDragDataReceived");
-    Gdk::ListHandle_AtomString targets = context->get_targets();
-
-    for(Gdk::ListHandle_AtomString::const_iterator iter = targets.begin();
-        iter != targets.end(); ++iter) {
-      
-      std::string atom(*iter);
-      DBG_OUT("atom is %s", atom.c_str());
-      if((atom == "text/uri-list") || (atom == "_NETSCAPE_URL")) {
-        drop_uri_list(context, x, y, selection_data, time);
-        return;
-      }
-    }
+    drop_uri_list(context, x, y, selection_data, time);
+    return;
   }
 
 



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