
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
Source (link to git-repo or to original if based on someone elses unmodified work):
----- 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
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,
- 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.
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 :)
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 :)
>> 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) }
ah and yes, it's possible to change the maximum width/size of a widget. use the width-request and height-request setters
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.
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(...))
it's too big for my taste.
i've reworked the size and the layout - i hope this works better for you.