xfdesktop menu drag and drop?
Brian J. Tarricone
bjt23 at cornell.edu
Sat Jul 3 00:15:50 CEST 2004
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
anything i'm missing?
More information about the Xfce4-dev