xfdesktop menu drag and drop?
Jasper Huijsmans
jasper at xfce.org
Mon Jul 5 07:52:56 CEST 2004
Brian J. Tarricone wrote:
> On Fri, 2 Jul 2004, Eduard Roccatello wrote:
>
>
>>On Fri, 2 Jul 2004 03:21:05 -0400 (EDT)
>>"Brian J. Tarricone" <bjt23 at cornell.edu> wrote:
>>
>>
>>>yup, it's there, but it really doesn't do anything yet. i think if
>>>you drag it onto a text editor, if the editor supports it, you'll get
>>>the text of the item, but that's about it for now. after i figure out
>>>how tod o it properly, you'll be able to drop onto the panel to add a
>>>launcher. maybe in a couple weeks.
>>>
>>
>>
>>i think we should discuss this together.
>>panel dnd implementation is really useful for appfinder (it is why
>>appfinder has been developed). Actual dnd implementation is just to pass
>>the path of the .desktop file and it works with menu editor (appfinder
>>can dnd things to menueditor).
>>
>>What about it Brian?
>
>
> i've already talked to jasper about this, and the problem is that
> there's no easy way to create a launcher programmatically (i.e., from
> within the panel.
>
> for xfdesktop, at the point that we're doing a drag, we don't know what
> the .desktop file is. actually, there may not even _be_ a .desktop
> file, since it may be a manually created entry in menu.xml. so, i'm
> basically sending the "contents" of the .desktop file (generated myself)
> as the drag data. obviously, if the panel can be made to support this,
> adding support for receiving a text/uri (of the .desktop file) is
> trivial.
>
> anything i'm missing?
>
For now, I think it would be nice to support DND of x-desktop-file
target to the launcher dialog. It's not perfect, but it's better than
nothing.
Jasper
More information about the Xfce4-dev
mailing list