openbox fork to make it act a bit more like ryudo
Find a file
Kadlcik Libor 0352abfa88 This patch implements support for icons in user-defined menus into Openbox
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
:).
2010-01-08 17:55:19 -05:00
data Merge branch 'backport' into work 2010-01-08 10:22:30 -05:00
debian Change the openbox website to openbox.org 2010-01-06 17:13:03 -05:00
doc Change the openbox website to openbox.org 2010-01-06 17:13:03 -05:00
m4 Don't need to explicitly check for xft. 2008-04-20 00:10:52 +02:00
obrender This patch implements support for icons in user-defined menus into Openbox 2010-01-08 17:55:19 -05:00
obt reflect the change that parse.c/h was renamed to xml.c/h in the file header comments 2009-12-28 12:24:08 -06:00
openbox This patch implements support for icons in user-defined menus into Openbox 2010-01-08 17:55:19 -05:00
po Merge branch 'backport' into work 2009-12-11 19:02:11 -05:00
tests Merge branch 'backport' into work 2009-12-17 10:33:39 -05:00
themes Add themeing options for inactive osd labels, osd.inactive.label.* 2009-12-21 10:35:06 -05:00
tools Add a --root option for obxprop 2010-01-06 17:13:03 -05:00
.gitignore ignore some added tests 2010-01-08 13:22:09 -05:00
AUTHORS update the icon to the pretty one by david barr 2008-01-12 18:25:22 -05:00
bootstrap use automake 1.9 2007-04-23 19:11:12 +00:00
CHANGELOG Set up work for making a 3.5 prerelease. 2009-12-21 14:08:34 -05:00
COMPLIANCE Openbox doesn't support _NET_WM_USER_TIME_WINDOW atm. 2008-05-29 18:51:17 +02:00
configure.ac This patch implements support for icons in user-defined menus into Openbox 2010-01-08 17:55:19 -05:00
COPYING add some text files.. 2002-11-01 10:15:13 +00:00
gettext.h 1) translate all of openbox's output 2007-04-23 17:56:35 +00:00
HACKING update the indent style guidelines 2008-02-14 19:40:03 +01:00
install-sh install-sh should be executable 2009-01-29 22:35:48 +01:00
makedeb set the ubuntu deb version right 2007-05-18 00:43:04 +00:00
Makefile.am This patch implements support for icons in user-defined menus into Openbox 2010-01-08 17:55:19 -05:00
README yay for mika-chan 2007-05-13 22:08:35 +00:00
README.GIT be explicit than automake 1.9 is needed 2008-01-31 12:25:32 -05:00
README.NLS add readme.nls with fancy tricks 2007-06-01 23:18:32 +00:00

Openbox
Copyright (C) 2004-2007  Mikael Magnusson
Copyright (C) 2002-2007  Dana Jansens

----

    This software is OSI Certified Open Source Software.
    OSI Certified is a certification mark of the Open Source Initiative.

----

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    See the COPYING file for a copy of the GNU General Public License.