summaryrefslogtreecommitdiff
path: root/openbox/translate.h
AgeCommit message (Collapse)Author
2010-01-08This patch implements support for icons in user-defined menus into OpenboxKadlcik Libor
Image loading is done using the Imlib2 library. I chose Imlib2 because it's pretty fast, it's easy to use, supports many file formats (tested xpm, gif, jpeg, png) and doesn't introduce too much bloat (it depends :)). I ported the patch to 3.4.7-pre3 and added some enhancements. Caching is much better now, and icons can be disabled at compile time using --disable-imlib2 option. What's new? Syntax of configuration files (namely rc.xml and menu.xml) has been changed slightly to allow users to associate icons to menu entries. This is done by specifying path to icon file in the new "icon" attribute in "<item>" element, e.g: <item label="Vim" icon="/usr/share/pixmaps/vim-32.xpm"> <action name="Execute"><execute>x-terminal-emulator -T Vim -e vim</execute></action> </item> If user doesn't want to display any icons in his user-defined menus, he/she can disable icons in rc.xml, inside "<menu>" section: <menu> ... <showIcons>no</showIcons> ... </menu> Default value is "yes". (New boolean variable "config_menu_user_show_icons" has been added to source code.) An icon is loaded (using menu_item_attach_icon()) when a new entry of menu is created. Fortunately, I haven't notice any performance problems because of this :).
2008-01-20change openbox to use the libotk's keyboard.[ch] stuff instead of the old ↵Dana Jansens
modkeys.[ch] and some of translate.[ch]
2007-08-06proper constnessDana Jansens
2007-05-02better menu keyboard handling.Dana Jansens
also, when you hit a keybinding while menus are open, it will close the menus and run the binding.
2007-04-25add keyboard shortcuts to the menus. you can specify the shortcut key with & ↵Dana Jansens
even in root menu and stuff
2007-04-231) translate all of openbox's outputDana Jansens
2) update copyrights. 3) make release. ok that part not quite yet.
2003-09-17constDana Jansens
2003-09-17no tabsDana Jansens
2003-09-17add copyright headers, adjust --version output to include copyright, and ↵Dana Jansens
--help output to not include version output.
2003-08-12move the keyboard and mouse plugins into the kernel for mucho sexiness.Dana Jansens
make workspace changing a grabbed/interactive process like focus cycling is, with the popup and all. this is some hot shit.