Yet Another Menu Bar (Work In Progress)

Various Gnome Stuff

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.0

Available as/for:
Description:
Just something I found on a mockup somewhere which I can't find anymore (T.T) that I liked... It's still very buggy, but please give me your feedback .

Howto install:

edit the config.c (if necessary include/bars.h, though this is not recommended) to suit your needs and then run ./compile && ./gnome-panel-menu
Last changelog:

----- 03.04.2009 -----
Changes:
* Implemented main functionality.
Bugs:
* When clicking non-activated toggle-buttons segfault
ToDo:
* XML config reader
* icons
* autohide
* re-set maximum maximize area for window manager
* save desktop space


----- 21.05.2009 -----
Changes:
* Saved desktop space (ToDo)
- bars no longer stacked
* Toggle-Buttons -> action buttons with submenus
* Moved height setting to config.h
Bugs:
* none found
ToDo:
* XML config reader
* icons
* autohide
* re-set maximum maximize area for window manager


----- 24.05.2009 -----
Changes:
* implemented icons
* improved usability of config.c
- moved add_action_button(...) to add_action(...)
- moved add_toggle_button(...) to add_submenu(...)
- moved toggle_button_callback(...) to submenu_callback(...)
- moved action_button_callback(...) to action_callback(...)
* set GTK_RELIEF_NONE to buttons with submenus to improve usability
* added file browser (major bump to 0.1)
Bugs:
* when a nonexistant icon file is given in config.c an ugly default
icon is displayed
ToDo:
* XML config reader
* autohide
* re-set maximum maximize area for window manager
* config dialog


----- 25.05.2009 -----
Changes:
* added support for gtk_icon_theme - icons can now be set as filenames
or as gtk icon names.
* improved file browser:
- added home button
- added icons to home and
- icons paths not hardcoded anymore
- double-clicking a file opens it
- improved positioning so that the window doesn't go off-screen
- "~" alias for the home directory
- removed conflict with several open file browsers (only one can be opened now)
- moved toggle button to action button - GTK_RELIEF_NONE is set when the browser is closed
* re-sized the back button
* fixed bugs - crashes etc
* improved compile script
Bugs:
* when a nonexistant icon is given in config.c an ugly default
icon is displayed
ToDo:
* XML config reader
* autohide
* re-set maximum maximize area for window manager
* config dialog
* mime type icons for file browser


Ratings & Comments

10 Comments

Kyralik

Hey, I was hoping someone could help me install this package? like a step by step, the instructions are confusion to me because I don't work much with these types of files. Thanks,

marufaberlin

- download the file to your home directory - in a terminal type: Quote:

tar -xf 104036-gnome-panel-menu.tar.gz <enter> cd Files/gnome-panel-menu/ <enter> ./compile.sh <enter> ./gnome-panel-menu <enter>
- you have to run ./gnome-panel-menu in that directory everytime you want the program to start. - if you want to customize the bar you have to edit the configure.c file it follows the following syntax: Quote:
add_submenu(BAR_X, "description", ICON_BLAH, BAR_N); add_folder(BAR_X, "description", ICON_BLAH, "/path/to/folder"); add_action(BAR_X, "description", ICON_BLAH, "command &");
where BAR_X is the menu you want to add the button to and BAR_N is the submenu of the button. ICON_BLAH is the path to the icon defined above. add_submenu adds a button which opens a submenu add_folder adds a button which opens a file browser popup add_action adds a button which executes an action. after you edit config.c be sure to run ./compile.sh again. I hope this helps you (and everyone else) with installing. If this is still confusing feel free to ask again.

Chrispy

not bad. two suggestions: - make use if gtk_icon_theme instead of hardcoding paths - make use of a config file instead of hardcoding it ... I would help you, if you it was in python :)

marufaberlin

Thanks for your feedback :) i'm glad you like it. > - make use if gtk_icon_theme instead of > hardcoding paths good idea, the problem i am currently facing is using gtk_icon_theme without limiting the user in using a custom icon. > - make use of a config file instead of > hardcoding it i've got that in my todo list (see above). one idea was using an xml config file which is my nature hierarichal - just like the menus. the other idea was using a directory with .desktop files. > ... I would help you, if you it was in > python :) thanks a lot, giving feedback and suggestions is already a great help - if you have any more ideas please feel free to comment :)

Chrispy

>> good idea, the problem i am currently facing is using gtk_icon_theme without limiting the user in using a custom icon. you may check if user set an icon, if not use gtk_icon_theme, you could then setup an empty function for it, like set_icon(blah, icon-name) { if (user_set blah) else (blah) }

Chrispy

ah and yes, it's possible to change the maximum width/size of a widget. use the width-request and height-request setters

marufaberlin

thanks for the tip about the icon - what im currently doing is checking if the icon path exists. width request seems to just limit the minimum size. http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-set-size-request it says something about setting the minimum size. another problem im facing is how to determine the absolute position of a widget on screen.

marufaberlin

i solved the user/gtk icon issue in the current release 0.1.1, as well as the issue with the maximum size of the back button (packing was the key, not size request or allocations :D)... about not hard-coding the config file - that was something i had planned to do last when the actual program was nearly finished (hence the abstraction level of add_action(...), add_submenu(...) and addfolder(...))

Nait

it's too big for my taste.

marufaberlin

i've reworked the size and the layout - i hope this works better for you.

Pling
0 Affiliates
Details
license
version 0.1.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 3

Other Various Gnome Stuff:

Karuna OS Logo
JCL
last update date: 18 years ago

Score 5.0

Ubuntu for Sony Ericsson z520i
microscopuce
last update date: 18 years ago

Score 5.0

Ubuntu Studio for SE z520i
microscopuce
last update date: 18 years ago

Score 5.0

Ubuntu Humunity
noobilus
last update date: 14 years ago

Score 6.1

VDesk - Visual Desktop
AnthonyAMC
last update date: 13 years ago

Score 5.5

Youtube search function for gnome shell
rivetrik
last update date: 13 years ago

Score 5.0