Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#32 Add new GNOME-like menu generated from *.desktop files

4.3
closed-fixed
5
2007-03-31
2006-09-07
PCMan
No

Hello,
I've made some improvement to the menu of fbpanel, and
here is a screenshot.
http://pcman.sayya.org/pcmanfm/pcmanfm_fbpanel.png
The menu is generated from *.desktop files installed on
the system partially according to the specs on
http://freedesktop.org.
However, the original menu spec is extremely
complicated and requires a lot of resources, so I
didn't fully implementd it. My implementation is not
complete, but I think this is quite enough for a
lightweight panel.

Here's some explaination about my patch:

ptk_app_menu.c: My implementation of the menu.

menu.patch: patch to plugins/menu.c to integrate my menu.
I didn't add my code directly to menu.c since
ptk-app-menu.c can be used separately.

I'm not sure how to correctly add new file to
plugins/Makefile since it's written for building of
shared libs containing plugins, so I #include
"ptk_app_menu.c" to insert my code to menu.c, which is
not a good way.
If you got any better way to add my code to fbpnale,
please do it.

Discussion

    • assigned_to: nobody --> aanatoly
     
  • PCMan
    PCMan
    2006-09-13

    Latest patch adding system menu generated from *.desktop files.

     
    Attachments
  • PCMan
    PCMan
    2006-09-13

    Logged In: YES
    user_id=1110932

    This is a new patch adding system menu generated from
    *.desktop files.
    "system { }" can work as a place holder for system menu
    items in the config file.
    Menu items got reloaded automatically when there is any
    change in directories containing *.desktop files.
    Icons are reloaded when the gtk+ icon theme is changed.

    It seems to be the time to release fbpanel 4.6.
    Cheers!

     
  • Logged In: YES
    user_id=638458
    Originator: NO

    it is implemented now. You can check code in from fbpanel.berlios.de SVN

     
    • status: open --> closed-fixed