After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 602741 - please support drag&drop
please support drag&drop
Status: RESOLVED DUPLICATE of bug 148944
Product: gnome-panel
Classification: Other
Component: window selector
2.28.x
Other Linux
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-23 15:39 UTC by Johannes Berg
Modified: 2009-11-23 18:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johannes Berg 2009-11-23 15:39:10 UTC
The window list applet supports drag & drop, bringing the window that you hover over while dragging to the front.

It would be very nice if that could be supported in the window selector applet (i.e. open menu, hover to bring up window) because I use that as my main window navigation apart from keybindings which don't work while dragging (which could be regarded as a separate bug, maybe).

I'm happy to work on this if given pointers on how to achieve the effect (even "look at the source" might work if specific enough as to which source)
Comment 1 Vincent Untz 2009-11-23 17:48:12 UTC
Unfortunately, the selector is a menu and drag & drop with a menu is something that is not working well with GTK+ (it should generally be avoided). I don't really understand what you'd like to achieve, though. Can you elaborate?

If you want to look at that, please look at the libwnck code (libwnck/selector.c file).
Comment 2 Johannes Berg 2009-11-23 17:57:28 UTC
Sure. Say I have an email in evolution, which is full-screen, displayed in the preview pane. I can now save an attachment by dragging it to a folder. However, the folder. Say I also have already opened the folder. However, when I go to evolution, the nautilus folder window hides behind evolution. What I really want is to be able to drop the attachment into the folder.

If I have a window list applet, then I can drag the file from evolution over the folder window, which causes the folder window to pop up, and I can then drop the file into the folder.

Since I don't have a window list applet, there's no way I can drop the file into the folder now. What I tend to do is mark the folder window as "always on top", but that's quite a bit more work than it could be, I think.

If I just want to drop a file to the desktop, I can also hover over the "show desktop" applet for a while, and it activates hiding all windows. But there's no way to reach an arbitrary window without the window list applet while dragging.
Comment 3 Vincent Untz 2009-11-23 18:02:11 UTC
Ah, okay. So this is a duplicate of bug 148944 :-)

*** This bug has been marked as a duplicate of bug 148944 ***
Comment 4 Johannes Berg 2009-11-23 18:03:23 UTC
Ah yes, indeed, sorry. My offer to look at the code still stands -- any more hints than libwnck/selector.c?
Comment 5 Vincent Untz 2009-11-23 18:19:12 UTC
(In reply to comment #4)
> Ah yes, indeed, sorry. My offer to look at the code still stands -- any more
> hints than libwnck/selector.c?

Not really, it's really all there. The code is quite self-contained, and should be relatively easy to understand. But drag and drop on menus are really not fun, as I previously said :-)