summaryrefslogtreecommitdiff
path: root/openbox/menu.c
AgeCommit message (Collapse)Author
2007-05-27only hilight the first entry when opening the menu with a keybindMikael Magnusson
2007-05-27hilight the first normal entry also if there is a menuheader/separator before itMikael Magnusson
2007-05-20set the functions recursively, so if you change it after the menu has been ↵Dana Jansens
opened it takes effect all the way down
2007-05-20set the functions in the more menu the same as the parent menuDana Jansens
2007-05-13use the right list in client_add_hide_notify, rename destructor to ↵Dana Jansens
destroy_notify which is really what it is, and is more consistant now that there are 2 notifies
2007-05-09mem leakDana Jansens
2007-05-07um... hide the client menu when the window changes desktops. its not visible ↵Dana Jansens
anymore (probably..) and no send to menu wont be wrong too.
2007-05-07add a notifier for clients changing desktops. use it to update the send-to ↵Dana Jansens
menu if it changes. it does this by closing/opening the menu.. thats about the best we can do tho with this menu code without huge changes
2007-05-07translate "More..."Dana Jansens
2007-05-07merge in r6153-6154 from the 3.4 branchDana Jansens
2007-05-05changes to the client menu, which entries are there, and reorganizing, and ↵Dana Jansens
renaming. let you highlight disabled menu entries, they just aren't runable of course, and add the activedisabled theme element for these entries. add the all desktops button picture to "All desktops" in the client menu update the themes for the new element, and some changes to make things more readable-better contrast. CLEARLOOKS-OLIVE is now DIFFERENT FROM THE 3.4 BRANCH SO DON'T RE-RUN THEMETOXML ON IT :( :( yeah.. i think that is everything?
2007-04-26place the client menu at the top left of the window when opening it with a ↵Dana Jansens
key binding. change how the first menus are placed. place them like other people place menus. maybe this is good, maybe it is bad, we will see..
2007-04-25cleanups for keyboard menu shotcuts. dont let & set a shortcut from stuff ↵Dana Jansens
like menu titles and what not, they are only for strigns oenbox provides.
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.
2007-04-221) get rid of menu titlesDana Jansens
2) let separators have labels, when they have a label, then they will appear like a menu title used to so if you want a menu title, you use a separator in the menu itself at the top more style work may be needed
2007-03-25don't menu menus jump around at all anymore. open them on screen in the ↵Dana Jansens
first place
2007-03-18use const char*'s when we should beDana Jansens
2007-03-05scary commit..but here goes.Dana Jansens
YOUR THEMES ARE NOW OFFICIALLY BROKEN. Openbox has just moved it's theme format to an XML based one. The details of this format can be found in data/themerc.xsd (and http://openbox.org/themerc.xsd ALSO! This is very good and important and stuff! In the tools directory you will find THEMETOXML ! This tool takes a themerc on stdin, and spits out the same theme in theme.xml format. So this is all you need to do to update your themes. PLEASE NOTE: This themetoxml does _not_ install itself anywhere. It simply builds and then lives out in its tools/themetoxml directory, and that's it. So if you want to use it, that is where to find it. In moving to the new XML format, a number of additions/changes to the theme engine have been made. Themetoxml takes these into account and will set all the new things appropriately to make your theme look the same as it always has. New additions include.. * padding now has an horizontal and vertical component, instead of being one number * menus can have different borders than windows (color and size) * menu offset can now be negative. it's a little weird, but someone will want it no doubt * fonts are no longer controled by the theme at all, however font shadowing is, and on that note.. * font shadows are now any color you want, not just black and white * you can now set the shadow anywhere you can set the text's color, so you have more control, i.e. you can set shadow on active menu items but not inactive, or disabled, etc. * every color now has an alpha channel. at the moment they don't do anything, besides the font shadow one, but it leaves room for future explorations. it is REALLY HIGHLY RECOMMENDED that you set the alpha to 255 all the time, until such time as it could be useful. otherwise one day your theme may turn awful for people. * font colors are in the range 0-255, in case you were wondering, and they have to be specified in decimal * if you'd like to change you font's you can do so in your configuration file. this is how it is going to stay. changing the font in the theme assumes too much about peoples eye sight and locality and stuff. it doesn't belong there, sorry. the system-wide default rc.xml includes the new font settings for your viewing pleasure, and ill drop an example of it below. * shadows can now be positioned in any direction, they have both an x and a y offset which can be negative and positive. and offset of 0,0 will disable the shadow This isn't a release or anything. If someone had some good ideas about the xml theme format, I'd like to hear them. But I don't think it will be changing much right now beyond where it is. I don't even know how the new functionality will play out for themers, so we'll see. Whew.. I guess that's it. I'm not sure if I mentioned every little change or not, but oh well. Mileage may vary.. Please send any feedback. Here's the font configuration example. Hopefully ObConf will let you set this real soon. <theme> ... <font place="ActiveWindow"> <name>arial,sans</name> <size>7</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="InactiveWindow"> <name>arial,sans</name> <size>7</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="MenuTitle"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="MenuItem"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>normal</slant> </font> </theme>
2007-01-30a combined client_list_menu, use as client-list-combined-menu in your ↵Mikael Magnusson
rc.xml. needs some layout tuneups
2006-08-22update copyright step 2Mikael Magnusson
2006-08-19a more proper fix for the client list menu trying to activate a closed ↵Mikael Magnusson
client, no difference on end result
2006-08-16don't allow inventive users to open the menu while in an interactive grab ↵Mikael Magnusson
(ie changing focus or desktop)
2006-04-23maybe this makes everyone happy, only select first entry in menus if it's ↵Mikael Magnusson
not a submenu entry
2006-04-20fix #2670 (hilight first entry in menus) and respect keepBorder setting when ↵Mikael Magnusson
removing borders from mwm hints
2005-09-14never code on an empty stomachMikael Magnusson
2005-09-14maybe i should have tried opening a submenu tooMikael Magnusson
2005-09-14fix menus to show on the screen the mouse cursor spawned them fromMikael Magnusson
2004-10-06remove the hilightFirst option since it wasnt actually used in the codeMikael Magnusson
2003-10-12indentingDana Jansens
2003-10-11free menuframes when they fail to show themselvesDana Jansens
2003-10-01define DEBUG, NDEBUG, and G_DISABLE_ASSERTSDana Jansens
2003-09-28start menus with the cursor inside it, not over the border, a little closer ↵Dana Jansens
to the items..
2003-09-28halfway through client changes but...Dana Jansens
should fix crashes irt actions in the action queue for clients that have been destroyed. now those actions are skipped or performed without a client as possible.
2003-09-26give actions a ref countDana Jansens
2003-09-21dont add null actions to the listDana 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-09-17remoev unneeded includeDana Jansens
2003-09-15make openbox base-dir spec compliant, and change the theme dir structure, so ↵Dana Jansens
that themes go in $XDG_DATA_DIRS/themes/ with gtk/metacity/whateverelse themes
2003-09-14fix a mem leak, and make suer the menus arent visible when they are modifiedDana Jansens
2003-09-10hide menus before showing a new menu rootDana Jansens
2003-09-08if the menu path starts with a /, then just load it, don't try the prefixesDana Jansens
2003-09-07dont use obsolete xmlChildrenNodeDana Jansens
2003-09-07little bit of an actions overhaul, added action_run* so that duplicated code ↵Dana Jansens
can all be in the same place now woot. allow actions to specify when they can be used (ShowMenu cant in the OB_USER_ACTION_MENU_SELECTION case) remove KeyboardMove ad KeyboardResize. Instead, just use Move and Resize and determine if it should be a keyboard move/resize in the code
2003-09-04code style fixDana Jansens
2003-09-04optimization. don't need a glist where a simple pointer will suffice.Dana Jansens
2003-09-04when a pipe menu is killed, kill all its submenus as wellDana Jansens
2003-09-03add a reconfigure action, also reconfigure on SIGUSR2.Dana Jansens
support reconfiguring throughout the entire codebase.
2003-09-03make the client destructor a GDestroyNotifyDana Jansens