← Back to team overview

clicompanion-devs team mailing list archive

[Bug 910370] [NEW] Drag and drop when searching breaks the drag and drop

 

Public bug reported:

If you search fro a command and try to do a drag and drop (while
searching), then a warning is shown in command line and the drag and
drop functionality stops working.


The warning is this:

$ clicompanion 
Using locale in system
/usr/lib/python2.7/dist-packages/clicompanionlib/view.py:435: GtkWarning: You must override the default 'drag_data_received' handler on GtkTreeView when using models that don't support the GtkTreeDragDest interface and enabling drag-and-drop. The simplest way to do this is to connect to 'drag_data_received' and call g_signal_stop_emission_by_name() in your signal handler to prevent the default handler from running. Look at the source code for the default handler in gtktreeview.c to get an idea what your handler should do. (gtktreeview.c is in the GTK source code.) If you're using GTK from a language other than C, there may be a more natural way to override default handlers, e.g. via derivation.
  gtk.main()

** Affects: clicompanion
     Importance: Medium
     Assignee: David Caro (dcaro)
         Status: In Progress

** Changed in: clicompanion
   Importance: Low => Medium

-- 
You received this bug notification because you are a member of CLI
Companion Development Team, which is subscribed to CLI Companion.
https://bugs.launchpad.net/bugs/910370

Title:
  Drag and drop when searching breaks the drag and drop

Status in CLI Companion:
  In Progress

Bug description:
  If you search fro a command and try to do a drag and drop (while
  searching), then a warning is shown in command line and the drag and
  drop functionality stops working.

  
  The warning is this:

  $ clicompanion 
  Using locale in system
  /usr/lib/python2.7/dist-packages/clicompanionlib/view.py:435: GtkWarning: You must override the default 'drag_data_received' handler on GtkTreeView when using models that don't support the GtkTreeDragDest interface and enabling drag-and-drop. The simplest way to do this is to connect to 'drag_data_received' and call g_signal_stop_emission_by_name() in your signal handler to prevent the default handler from running. Look at the source code for the default handler in gtktreeview.c to get an idea what your handler should do. (gtktreeview.c is in the GTK source code.) If you're using GTK from a language other than C, there may be a more natural way to override default handlers, e.g. via derivation.
    gtk.main()

To manage notifications about this bug go to:
https://bugs.launchpad.net/clicompanion/+bug/910370/+subscriptions


Follow ups

References