
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
11 years ago
----- 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
11 years ago
----- 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
Kyralik
11 years ago
Thanks,
Report
marufaberlin
11 years ago
- 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.
Report
Chrispy
11 years ago
- 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 :)
Report
marufaberlin
11 years ago
> - 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 :)
Report
Chrispy
11 years ago
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)
}
Report
Chrispy
11 years ago
use the width-request and height-request setters
Report
marufaberlin
11 years ago
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.
Report
marufaberlin
11 years ago
Report
Nait
11 years ago
Report
marufaberlin
11 years ago
Report