desktopmenu future plans?

Biju Chacko biju_chacko at vsnl.net
Sat Nov 22 04:35:17 CET 2003


On Fri, 21 Nov 2003 14:11:10 +0200, Tuukka Mäkinen wrote:

> Biju Chacko wrote:
> > I am planning to look at this sometime in January. My main aim will be to
> > add support for the Freedesktop Menu Spec. I have not yet decided whether
> > that will add to this menu or replace it. Most likely the former.
> 
> The Freedesktop menu specification is... interesting. A bit overwhelming 
> when some of the elements aren't specified too well. For example use of 
> <and> and <or> is a mystery. Overriding previous elements might bring 
> some extra challenge to parsing too.

No kidding? :-)

Why do you think it hasn't been implemented yet? :)) Fortunately, I've got
sample code from Havoc Pennington which should help somewhat.

> > 
> > My original plan for menu editing was to use the menu itself to edit itself
> > rather than creating a seperate menu editor. As you noticed, we would enter
> > an'edit' mode, in which all actions on the menu would edit it rather than
> > execute.
> 
> How would editing work in this mode? Modifying existing entries could 
> happen by selecting that entry but what about adding new submenus and 
> entries. Removing submenus and entries could be done through modify but 
> that wouldn't be user friendly. An edit-menu with "new", "new/submenu", 
> "new/entry", "new/separator", "edit" and "remove" perhaps?

A menu that looks like:
     +--------+
     |Foo     |
     |Bar     |
     |Baz     |+--------+
     |Foobar >||Blah    |
     +--------+|Blech   |
               |Burp    |
               |Beep    |
               |Bump    |
               +--------+

In edit mode will become:

     +--------+
     |Edit... | 
     |Delete  |
     |New...  |
     | ------ |
     |Foo    >|
     |Bar    >|
     |Baz    >|+--------+
     |Foobar >||Edit... |
     +--------+|Delete  |
               |New...  |
               | ------ |
               |Blah   >|             
               |Blech  >|
               |Burp   >|
               |Beep   >|+-------+
               |Bump   >||Edit...|
               +--------+|Delete |
                         |New... |
                         +-------+

As Jazman said, editing would only be available for the xfce menu. The 
menu-spec derived menu would be read-only. 

BTW, sorry for the delay ... I just realized that I *hadn't* sent this and that
it was still in my 'drafts' folder. :)

hth,

-- b

--                       
------------------------------------------------------------------------
Biju Chacko             http://in.redhat.com                 Red Hat Inc



More information about the Xfce4-dev mailing list