7 years agoConvert the placement parsing section to the new config parser configparser
Dana Jansens [Mon, 8 Aug 2011 18:47:09 +0000 (14:47 -0400)]
Convert the placement parsing section to the new config parser

7 years agoFix the check when adding a new variable to the config parser, and NULL pointers...
Dana Jansens [Mon, 8 Aug 2011 18:17:24 +0000 (14:17 -0400)]
Fix the check when adding a new variable to the config parser, and NULL pointers in the ConfigParser.

- was checking if it didn't exist instead of looking for a duplicate

7 years agoConvert the focus parsing section to the new config parser
Dana Jansens [Mon, 8 Aug 2011 17:18:52 +0000 (13:18 -0400)]
Convert the focus parsing section to the new config parser

7 years agoAdd a callback type to the config parser for complex stuff like key bindings that...
Dana Jansens [Mon, 8 Aug 2011 16:57:57 +0000 (12:57 -0400)]
Add a callback type to the config parser for complex stuff like key bindings that aren't represented in a single variable.

7 years agoMake ObConfigParser objects.
Dana Jansens [Mon, 8 Aug 2011 16:35:52 +0000 (12:35 -0400)]
Make ObConfigParser objects.

The ConfigParser object lets you register paths/variables with a specific
 object.  Then you can load a file with that object.  Different files may
 obviously need different variables.

7 years agowip: Add config_parser.c which will provide a nice means to specify config variables...
Dana Jansens [Sat, 6 Aug 2011 01:55:00 +0000 (21:55 -0400)]
wip: Add config_parser.c which will provide a nice means to specify config variables and where they are in the config file.

- Has functions to register variables of different types.
- When it reads from the file it stores it in an ObConfigValue, but
  puts the raw value directly into a variable of the right type so there
  is no redirection needed to access config values.

- move the config file loading shit into config_parser.c
- have config.c just register the various config vars with the parser.
- some more complex things like Fonts will need more work.
- remove the "#if 0" stuff in config_parser.c
  - this is an example of the direction I'm trying to go in config.c eventually

7 years agoAdd ObConfigValue types for a keyboard and mouse button (with modifiers).
Dana Jansens [Sat, 6 Aug 2011 01:53:33 +0000 (21:53 -0400)]
Add ObConfigValue types for a keyboard and mouse button (with modifiers).

Make the copy process return FALSE if the value cannot be copied successfully.
Make the enum, key, and mouse functions return FALSE if the ObConfigValue
  isn't valid.

7 years agoMake a structure to hold a keycode+modifers and mousebutton+modifiers, and use them...
Dana Jansens [Sat, 6 Aug 2011 01:36:20 +0000 (21:36 -0400)]
Make a structure to hold a keycode+modifers and mousebutton+modifiers, and use them for the config values.

Makes a complete value for these so it's one variable instead of two.

7 years agoMake the ConfigValue list type into a gchar** string list instead.
Dana Jansens [Mon, 8 Aug 2011 16:35:52 +0000 (12:35 -0400)]
Make the ConfigValue list type into a gchar** string list instead.

1. I don't want to have to deal with nested lists cuz they just don't need to
   happen (now).

7 years agoAdd obt_xml_path_get_list() that returns a list of xml nodes that match the given...
Dana Jansens [Mon, 8 Aug 2011 16:34:17 +0000 (12:34 -0400)]
Add obt_xml_path_get_list() that returns a list of xml nodes that match the given path.


It would return all the b nodes above for the path "foo/b".

7 years agodon't create empty xml nodes when there is no default value given for them. NULL...
Dana Jansens [Mon, 8 Aug 2011 15:33:37 +0000 (11:33 -0400)]
don't create empty xml nodes when there is no default value given for them. NULL != ""

7 years agoTurn the Foo/ToggleFoo/UnFoo actions into a single Foo action with option "set" which...
Dana Jansens [Mon, 8 Aug 2011 14:51:45 +0000 (10:51 -0400)]
Turn the Foo/ToggleFoo/UnFoo actions into a single Foo action with option "set" which is "on", "off", or "toggle"

7 years agoUse ObConfigValue to parse gravity coords, remove parse special functions from config...
Dana Jansens [Sat, 6 Aug 2011 00:54:59 +0000 (20:54 -0400)]
Use ObConfigValue to parse gravity coords, remove parse special functions from config.[ch]

7 years agoRename obt_xml_find_node() to obt_xml_find_sibling(). Add obt_xml_tree_get_node(...
Dana Jansens [Sat, 6 Aug 2011 00:36:51 +0000 (20:36 -0400)]
Rename obt_xml_find_node() to obt_xml_find_sibling(). Add obt_xml_tree_get_node() and xml_tree_delete_node()

7 years agoFix interactive actions with the new action running code.
Dana Jansens [Thu, 4 Aug 2011 17:43:34 +0000 (13:43 -0400)]
Fix interactive actions with the new action running code.

It was running the interactive action init code when running an interactive
action that is already running.

7 years agoRename ObActionValue to ObConfigValue. This holds one of three types.
Dana Jansens [Fri, 5 Aug 2011 15:35:09 +0000 (11:35 -0400)]
Rename ObActionValue to ObConfigValue.  This holds one of three types.

1. A string
2. A list of other ObConfigValues
3. A list of actions (ObActionList).

The string type can be returned in various ways such as int, enum, fraction, gravity coordiate.

Provide a ways to save the ObConfigValue into a pointer.  This lets you keep
the value contained withing the ObConfigValue in a variable of its basic type.

7 years agoAllow an xml tag to be unregistered from the xml parser.
Dana Jansens [Fri, 5 Aug 2011 15:00:53 +0000 (11:00 -0400)]
Allow an xml tag to be unregistered from the xml parser.

7 years agoFix release scripts: test en .po files for correct version. correctly find previous...
Dana Jansens [Wed, 3 Aug 2011 21:26:43 +0000 (17:26 -0400)]
Fix release scripts: test en .po files for correct version. correctly find previous version tag in git and display it.

7 years agoregister filters on startup
Dana Jansens [Wed, 3 Aug 2011 21:03:30 +0000 (17:03 -0400)]
register filters on startup

1. write filters for everything in actions/if.c
2. rm actions/if.c
3. make action(s) to change config options?
   includes key and mouse binding
4. rm -rf *xml*?

7 years agoparse filters and actionlists inside an action list correctly
Dana Jansens [Wed, 3 Aug 2011 21:03:11 +0000 (17:03 -0400)]
parse filters and actionlists inside an action list correctly

7 years agoPass a client set to all actions, and make focus cycling use a client set.
Dana Jansens [Wed, 3 Aug 2011 20:58:23 +0000 (16:58 -0400)]
Pass a client set to all actions, and make focus cycling use a client set.

7 years agoProvide operations to get the size of a ObClientSet, and get the clients in it. Also...
Dana Jansens [Wed, 3 Aug 2011 20:57:21 +0000 (16:57 -0400)]
Provide operations to get the size of a ObClientSet, and get the clients in it. Also bug fixes.

7 years agoAdd functions to ObClientSet to run a function on each client in the set, and add...
Dana Jansens [Wed, 3 Aug 2011 15:32:02 +0000 (11:32 -0400)]
Add functions to ObClientSet to run a function on each client in the set, and add constness.
Anything that doesnt change/destroy the given set takes a const ObClientSet*.

7 years agoGenerate a fake leave event on actions that move windows (used to generate another...
Dana Jansens [Tue, 2 Aug 2011 20:28:19 +0000 (16:28 -0400)]
Generate a fake leave event on actions that move windows (used to generate another enter event?)

7 years agoRename the fields in ObActionListRun for clarity
Dana Jansens [Tue, 2 Aug 2011 20:27:33 +0000 (16:27 -0400)]
Rename the fields in ObActionListRun for clarity

7 years agoAdd action_list_run.c/h with action_list_run() and struct ObActionListRun.
Dana Jansens [Tue, 2 Aug 2011 19:55:44 +0000 (15:55 -0400)]
Add action_list_run.c/h with action_list_run() and struct ObActionListRun.

This function runs an action list, taking over from the function that used to
live in action.c.  Now the action.c function will simply run a single action.

The actions and filters now take a const ObActionListRun* which describes
the user event which triggered the actions/filters to run.

The action_list_run() function can also run filters, yay.  However...

1. the filters' client sets are not passed to actions yet. do this.
2. make action(s) to change config options
   includes key and mouse binding
3. rm -rf *xml*

7 years agoFix prompt cleanup (was not going through the list correctly when freeing items)
Dana Jansens [Tue, 2 Aug 2011 19:53:42 +0000 (15:53 -0400)]
Fix prompt cleanup (was not going through the list correctly when freeing items)

7 years agoAdd a means to duplicate ObClientSet
Dana Jansens [Tue, 2 Aug 2011 18:45:21 +0000 (14:45 -0400)]
Add a means to duplicate ObClientSet

and fix destroy notifications.
- set the destroy notification when making a set with a single window, not
  when making an empty set.
- always add/remove the destroy notification when creating/destroying the hash

7 years agoAdd the minus and contains() operations to ObClientSet, and allow creating a set...
Dana Jansens [Tue, 2 Aug 2011 18:20:14 +0000 (14:20 -0400)]
Add the minus and contains() operations to ObClientSet, and allow creating a set of any single client.

7 years agoFix expand/reduce in the full or empty set cases.
Dana Jansens [Tue, 2 Aug 2011 17:31:23 +0000 (13:31 -0400)]
Fix expand/reduce in the full or empty set cases.

7 years agoAdd Inotify to the release script testing
Dana Jansens [Mon, 1 Aug 2011 20:50:10 +0000 (16:50 -0400)]
Add Inotify to the release script testing

7 years agoCreate some Openbox release scripts:
Dana Jansens [Mon, 4 Oct 2010 18:33:16 +0000 (14:33 -0400)]
Create some Openbox release scripts:

release/bugs: Prints a list of bugs that are mentioned in git commits for a
  git revision, since previous release.
  - Very useful for updating the CHANGELOG file!

release/go: Tests a git revision for correct compilation, and prepares files
  for release.
  - Makes the tarball
  - Makes a GPG signature for the tarball
  - Tags the release
  - Spits out URLs to edit and gives the changelog for copy/paste.

release/email: Sends an email to the Openbox mailing list with the changelog
  and details about the release.  Call this with the same parameters used for
  running release/go once it is finished, and the files are uploaded, etc.
  - Also emails mikachu re freshmeat.net

7 years agoMake empty ObClientSet objects not hold a hash table.
Dana Jansens [Fri, 29 Jul 2011 21:35:31 +0000 (17:35 -0400)]
Make empty ObClientSet objects not hold a hash table.

This saves creating one every time we make an empty set (boolean filter
  false result)

7 years agomake a special "ALL" ObClientSet which contains all clients.
Dana Jansens [Fri, 29 Jul 2011 21:28:14 +0000 (17:28 -0400)]
make a special "ALL" ObClientSet which contains all clients.

This saves copying all the clients into the set.

IMPORTANT: This client set will test as a "true" boolean regardless of if there
  are clients present or not.
  - We did this to allow for boolean filters.  A boolean filter returns the
    "ALL" set for its true value, and an empty set for its false value.

7 years agoadd the "all" and "target" filters
Dana Jansens [Fri, 29 Jul 2011 20:59:16 +0000 (16:59 -0400)]
add the "all" and "target" filters

7 years agoPass a user data to the client_set_reduce/expand function which is given to the
Dana Jansens [Fri, 29 Jul 2011 20:57:55 +0000 (16:57 -0400)]
Pass a user data to the client_set_reduce/expand function which is given to the

This lets us pass the filter's context in to its test function along with the
  client window, so it can make an intelligent decision about adding/removing
  the client from the current set.

7 years agoStick an ObClientSetReduce/ExpandFunc directly in the filter definition.
Dana Jansens [Fri, 29 Jul 2011 20:52:59 +0000 (16:52 -0400)]
Stick an ObClientSetReduce/ExpandFunc directly in the filter definition.

Saves a redirection to the filter just to go to the client_set_reduce/expand

7 years agoRename actions/all.[ch] and filters/all.[ch] to _all.[ch]
Dana Jansens [Fri, 29 Jul 2011 20:42:15 +0000 (16:42 -0400)]
Rename actions/all.[ch] and filters/all.[ch] to _all.[ch]

There will actually be an "all" filter so this clashed.

7 years agoActions say what kind of filter they would like by default (one window or all)
Dana Jansens [Fri, 29 Jul 2011 20:37:41 +0000 (16:37 -0400)]
Actions say what kind of filter they would like by default (one window or all)

7 years agomake empty sets still a ObClientSet* structure and not a NULL.
Dana Jansens [Fri, 29 Jul 2011 20:18:53 +0000 (16:18 -0400)]
make empty sets still a ObClientSet* structure and not a NULL.

so we can differentient between a missing set and an empty set.

7 years agoUse ObClientSet objects in the filter system, so filters work on these sets.
Dana Jansens [Fri, 29 Jul 2011 20:01:11 +0000 (16:01 -0400)]
Use ObClientSet objects in the filter system, so filters work on these sets.

7 years agoAdd ObClientSet data type. It holds a set of clients !
Dana Jansens [Fri, 29 Jul 2011 20:00:02 +0000 (16:00 -0400)]
Add ObClientSet data type.  It holds a set of clients !

The sets can be modified by union and intersection, and can have clients
added or removed with a test callback function.
They use a GHashTable underneath.

7 years agoAllow client destroy notify functions to be removed based on the data associated...
Dana Jansens [Fri, 29 Jul 2011 19:59:22 +0000 (15:59 -0400)]
Allow client destroy notify functions to be removed based on the data associated with them.

7 years agoKeep track of the currently targetted client for user events in event.c/h
Dana Jansens [Fri, 29 Jul 2011 19:58:35 +0000 (15:58 -0400)]
Keep track of the currently targetted client for user events in event.c/h

7 years agoAdd filters/all.c which will run startup on all the filters to register them
Dana Jansens [Fri, 29 Jul 2011 19:08:12 +0000 (15:08 -0400)]
Add filters/all.c which will run startup on all the filters to register them

7 years agoAdd a generic filter system similar to the action system (not connected to anything...
Dana Jansens [Thu, 28 Jul 2011 19:45:43 +0000 (15:45 -0400)]
Add a generic filter system similar to the action system (not connected to anything yet)

7 years agoRename ObActions* to ObAction* and remove more 3.4-compat action stuff that was missed.
Dana Jansens [Thu, 28 Jul 2011 18:43:55 +0000 (14:43 -0400)]
Rename ObActions* to ObAction* and remove more 3.4-compat action stuff that was missed.

7 years agorm some unused fn defns
Dana Jansens [Thu, 28 Jul 2011 18:07:22 +0000 (14:07 -0400)]
rm some unused fn defns

7 years agorm the actions_parse* functions which parsed xml actions
Dana Jansens [Thu, 28 Jul 2011 18:05:54 +0000 (14:05 -0400)]
rm the actions_parse* functions which parsed xml actions

7 years agorm some unused struct defns cruft
Dana Jansens [Thu, 28 Jul 2011 18:03:28 +0000 (14:03 -0400)]
rm some unused struct defns cruft

7 years agoParse ObActionsList*s from the config file (out of the xml for now).
Dana Jansens [Wed, 27 Jul 2011 20:32:05 +0000 (16:32 -0400)]
Parse ObActionsList*s from the config file (out of the xml for now).

- config.c: use the new actions parser
- actions.c: provide the actions parser a way to create a new action (takes
    a hash table of options for it)
- actions/*.c: take a hash table of options instead of an xml subtree
- *: us ObActionsList* instead of a GList* of ObActionAct*s.

1. make filters
  openbox/filters.c as interface to them
  store filters in parsed filter tests instead of key/value pairs
2. make action(s) to change config options
  includes key and mouse binding
3. rm -rf *xml*

7 years agoAdd a parser for the action command language.
Dana Jansens [Tue, 26 Jul 2011 22:06:42 +0000 (18:06 -0400)]
Add a parser for the action command language.

The parser generates list of actions (complete with filters).  The parser isn't
called anywhere yet, and uses the incomplete actions_act_new() function.

The filters now are just text string key:value pairs. But they should
  become intelligent objects like actions are.
The actions need to change their option parsing from XML to the new key:value
  pair lists.

7 years agoFix blocking in inotify reader.
Dana Jansens [Tue, 26 Jul 2011 13:40:52 +0000 (09:40 -0400)]
Fix blocking in inotify reader.

If the inotify reader reads an event and it ends at the same place the read()
  ended, then we don't know that there is anything more available, so don't
  try read() again until after it has been poll()'d.

7 years agoadd GNOME environment to the menus for now
Dana Jansens [Sun, 24 Jul 2011 23:41:05 +0000 (19:41 -0400)]
add GNOME environment to the menus for now

7 years agoMake OnlyShowIn and NotShowIn work in .desktop file parsing
Dana Jansens [Sun, 24 Jul 2011 23:40:38 +0000 (19:40 -0400)]
Make OnlyShowIn and NotShowIn work in .desktop file parsing

7 years agoProperly build path names for TryExec
Dana Jansens [Sun, 24 Jul 2011 23:29:26 +0000 (19:29 -0400)]
Properly build path names for TryExec

7 years agoremove debug prints
Dana Jansens [Sun, 24 Jul 2011 23:19:17 +0000 (19:19 -0400)]
remove debug prints

7 years agoFix memory issues in the apps menu when reconfiguring.
Dana Jansens [Sun, 24 Jul 2011 22:58:29 +0000 (18:58 -0400)]
Fix memory issues in the apps menu when reconfiguring.

All menu pointers must be given up and recreated every reconfigure. The menu
system destroys all menus on its own.

7 years agoOn reconfigure, make the apps menu's linkbase refresh.
Dana Jansens [Sun, 24 Jul 2011 22:37:50 +0000 (18:37 -0400)]
On reconfigure, make the apps menu's linkbase refresh.

7 years agoMake the obt_watch functionality work without inotify (via manual refreshes).
Dana Jansens [Sun, 24 Jul 2011 22:13:36 +0000 (18:13 -0400)]
Make the obt_watch functionality work without inotify (via manual refreshes).

Adds obt/watch_manual.c which is a filler for when watch_inotify.c can't be
  used.  Other watch_foo.c may also exist in the future I hope.
Adds obt/watch_interface.h which the inotify (and others) subsystem can use
  to call back notification to the main watch system that events have
Keep track of all files being watched within the main watch system, so that if
  a directory disappears, we can report the files inside it being removed.
  This change moved a lot of the recursive functionality out from
  watch_inotify.c into the main watch.c, making it much more simple and should
  help make it much easier to add other watch_foo.c subsystems.

7 years agofix updates in the app menu from the linkbase.
Dana Jansens [Wed, 9 Mar 2011 18:49:11 +0000 (13:49 -0500)]
fix updates in the app menu from the linkbase.

it did not remove things correctly if the linkbase removed something while the
  menu was not shown.
it sorted the wrong list.
basically it was buggy. tested now with a duplicate .desktop id in 2 places,
  and the menu shows only one copy. updating it while the menu is not shown
  correctly updates the menu.  updating it while the menu is shown also
  correclty updates the menu.

7 years agokeep only one version of each .desktop file "id" in the linkbase category lists.
Dana Jansens [Wed, 9 Mar 2011 16:08:19 +0000 (11:08 -0500)]
keep only one version of each .desktop file "id" in the linkbase category lists.

7 years agodon't follow pointers after freeing them
Dana Jansens [Tue, 8 Mar 2011 21:02:14 +0000 (16:02 -0500)]
don't follow pointers after freeing them

7 years agoShow all the .desktop links available in the system in the "apps-menu" menu.
Dana Jansens [Thu, 27 Jan 2011 22:31:41 +0000 (17:31 -0500)]
Show all the .desktop links available in the system in the "apps-menu" menu.

They don't do anything, cuz it's problematic to try create an Execute action
from in the code right now.

7 years agoadd menu_sort_entries() which sorts all entries in an ObMenu
Dana Jansens [Thu, 27 Jan 2011 22:30:45 +0000 (17:30 -0500)]
add menu_sort_entries() which sorts all entries in an ObMenu

this function sorts each group of entries that appear together between two
consecutive separators (or ends of the list)

7 years agoGive info for changes in the update callback from ObtLinkBase
Dana Jansens [Thu, 27 Jan 2011 22:29:25 +0000 (17:29 -0500)]
Give info for changes in the update callback from ObtLinkBase

Also provide a function to access all ObtLink objects in a given category.

7 years agospecify the encoding of filesystem paths, and include a comparator function
Dana Jansens [Thu, 27 Jan 2011 22:28:12 +0000 (17:28 -0500)]
specify the encoding of filesystem paths, and include a comparator function

the comparator compares two ObtLink** objects by their names.  if the names are
equal it uses the path of the source as a tie-breaker.

7 years agouse the filesystem's locale for opening a .desktop file
Dana Jansens [Thu, 27 Jan 2011 22:27:22 +0000 (17:27 -0500)]
use the filesystem's locale for opening a .desktop file

7 years agoAdd another BSEARCH function that lets you search through an array of objects.
Dana Jansens [Thu, 27 Jan 2011 22:23:47 +0000 (17:23 -0500)]
Add another BSEARCH function that lets you search through an array of objects.

If you give it a value x, the macro lets you pull a value out of each object
that you want to compare to x.

7 years agoShow the list of categories in the apps menus as submenus.
Dana Jansens [Wed, 26 Jan 2011 23:11:22 +0000 (18:11 -0500)]
Show the list of categories in the apps menus as submenus.

The categories are not based on what you actually have yet but will be soon.

Removed the "main category" notion from the links themselves, they just
publish a list of categories instead.  Moved this notion out to the Apps menu
itself.  This should make it easy to possibly to customize your set of
visible categories if we should like to do that sometime.

7 years agoStore all links in the linkbase grouped by their main category.
Dana Jansens [Tue, 25 Jan 2011 22:38:47 +0000 (17:38 -0500)]
Store all links in the linkbase grouped by their main category.

7 years agodon't free the linkbase on reconfigure
Dana Jansens [Tue, 25 Jan 2011 18:40:56 +0000 (13:40 -0500)]
don't free the linkbase on reconfigure

the menu does get freed, so don't free it with the menu.

7 years agoskip empty strings when splitting paths in the environment
Dana Jansens [Tue, 25 Jan 2011 18:32:43 +0000 (13:32 -0500)]
skip empty strings when splitting paths in the environment

7 years agodon't free lists in the linkbase hash table prematurely.
Dana Jansens [Tue, 25 Jan 2011 18:25:22 +0000 (13:25 -0500)]
don't free lists in the linkbase hash table prematurely.

the values (GSList objects) are freed by the hash table's free function if a
new value is inserted.  if we change the list and reinsert it, then it would
cause the list we're inserting to get freed (partially).  not good.  so instead
we manually free them when we remove them/destroy the hash table.

7 years agoWIP: Add an xdg applications menu (it doesn't have anything in it yet, but it does...
Dana Jansens [Mon, 24 Jan 2011 22:06:41 +0000 (17:06 -0500)]
WIP: Add an xdg applications menu (it doesn't have anything in it yet, but it does make a linkbase)

7 years agoAvoid blocks on read() for inotify.
Dana Jansens [Mon, 24 Jan 2011 22:05:44 +0000 (17:05 -0500)]
Avoid blocks on read() for inotify.

When we come into the function we don't know how much data is available to
read.  So just read a single event and return, so poll can figure out if there
is more for us or not.

7 years agohide the menus before shutting them down on reconfigure
Dana Jansens [Mon, 24 Jan 2011 22:00:41 +0000 (17:00 -0500)]
hide the menus before shutting them down on reconfigure

7 years agoMove the GSource attach out to the generic watch code, and avoid blocking reads
Dana Jansens [Mon, 24 Jan 2011 21:57:37 +0000 (16:57 -0500)]
Move the GSource attach out to the generic watch code, and avoid blocking reads

GLib seems to call the read function sometimes even tho the PollFD's revents
field is empty.  So don't read from the fd if this happens.

7 years agoAdd an optional callback to ObtLinkBase to hear about updates, and fix crash.
Dana Jansens [Mon, 24 Jan 2011 21:56:21 +0000 (16:56 -0500)]
Add an optional callback to ObtLinkBase to hear about updates, and fix crash.

7 years agoFix for when the menu's update function returns FALSE and no menu is shown.
Dana Jansens [Mon, 24 Jan 2011 21:45:56 +0000 (16:45 -0500)]
Fix for when the menu's update function returns FALSE and no menu is shown.

The ObMenuFrame was not being freed, and the child pointer was being left
pointing to the frame that was not visible.

7 years agoFilter links in a ObtLinkbase by environments.
Dana Jansens [Mon, 24 Jan 2011 20:13:27 +0000 (15:13 -0500)]
Filter links in a ObtLinkbase by environments.

Store a set of active environments in a linkbase and only include links in the
linkbase that 1) want to be displayed, 2) pass TryExec, 3) match environment
requirements and restrictions.

7 years agoadd comments
Dana Jansens [Mon, 24 Jan 2011 20:02:07 +0000 (15:02 -0500)]
add comments

7 years agoadd --disable option inotify
Dana Jansens [Mon, 4 Oct 2010 22:03:36 +0000 (18:03 -0400)]
add --disable option inotify

so we can test compiling without it present

7 years agoadd a comment
Dana Jansens [Mon, 4 Oct 2010 22:55:03 +0000 (18:55 -0400)]
add a comment

7 years agoLinkbase adds all the .desktops in the system, and updates them as they change.
Dana Jansens [Tue, 21 Sep 2010 00:46:37 +0000 (20:46 -0400)]
Linkbase adds all the .desktops in the system, and updates them as they change.

Fixes to .desktop parsing.
Add language/locale support for .desktop files.
Fixes to inotify watching, change what information is passed through the notify handler.
Add linkbase.h to the public obt headers.

7 years agoAdd linkbase which will keep track of available .desktop files for application launch...
Dana Jansens [Mon, 20 Sep 2010 19:47:10 +0000 (15:47 -0400)]
Add linkbase which will keep track of available .desktop files for application launching etc.

7 years agoAdd/fix inotify support for watching filesystem changes.
Dana Jansens [Mon, 20 Sep 2010 19:45:36 +0000 (15:45 -0400)]
Add/fix inotify support for watching filesystem changes.

obt/watch.h has the interface.
obt/watch.c has the generic watch code.
obt/watch_inotify.c has an inotify-specific backend, which could be replaced with another.

7 years agosome missing ifdef HAVE_SYS_INOTIFY
Dana Jansens [Mon, 24 Jan 2011 19:09:49 +0000 (14:09 -0500)]
some missing ifdef HAVE_SYS_INOTIFY

7 years agoadd an inotify watcher for directories (doesnt work without inotify yet)
Dana Jansens [Mon, 24 Jan 2011 19:23:46 +0000 (14:23 -0500)]
add an inotify watcher for directories (doesnt work without inotify yet)

7 years agoFix a memleak introduced by 0dd91ba0e2382a8f6177f501f8a0b26e0daf26a8, some cleanups
Mikael Magnusson [Wed, 3 Aug 2011 21:01:28 +0000 (23:01 +0200)]
Fix a memleak introduced by 0dd91ba0e2382a8f6177f501f8a0b26e0daf26a8, some cleanups

7 years agobe a bit more explicit about what is being copied from one texture to another
Dana Jansens [Tue, 25 Jan 2011 17:02:42 +0000 (12:02 -0500)]
be a bit more explicit about what is being copied from one texture to another

7 years agoSeparate theme options for osd prompt buttons.
Carlos Pita [Wed, 12 Jan 2011 23:49:45 +0000 (20:49 -0300)]
Separate theme options for osd prompt buttons.

I managed to keep backwards compatibility without really cluttering
the code so here is the patch
http://bugzilla.icculus.org/show_bug.cgi?id=4874 too.

Please keep in mind that this is my first piece of code for openbox
and that I'm not a die hard openbox user (yet), not to tell the patch
was not exhaustively tested. Anyway I think it's pretty much in a good
shape but any criticism will be welcome.

Basically the patch add the following theme options for controlling
buttons in osd prompts:

%%%% colors
% for the text inside the button
% for the line art around the button
%  (if you don't wan't the box just make box.color = bg.color)

%%%% textures

The buttons can be in three states:

 unpressed: neither clicked nor selected
 focused: selected but not clicked
 pressed: clicked (and of course selected)

I discarded the previous distinction between press and pfocus as in
fact it was only a formal distinction, in that both appearances
mimicked each other in every sense. It think that it was just
inherited from the way titlebar buttons are managed so I decided to
simplify it a bit.

All the options default in a way that preserves backwards compatibility:

osd.button.unpressed.text.color  -> osd.active.label.text.color
osd.button.pressed.text.color -> osd.active.label.text.color
osd.button.focused.text.color -> osd.active.label.text.color

osd.button.pressed.box.color ->  window.active.button.pressed.image.color
osd.button.focused.box.color -> window.active.button.hover.image.color

osd.button.unpressed.bg -> window.active.button.unpressed.bg
osd.button.pressed.bg -> window.active.button.pressed.bg
osd.button.focused.bg -> window.active.button.hover.bg

Notice that a good deal of locs where added to theme.c but in
compensation prompt.c is pretty much simpler now because the
appearances and textures are created while loading the theme.

7 years agoMerge branch 'm4/master'
Mikael Magnusson [Tue, 2 Aug 2011 20:18:14 +0000 (22:18 +0200)]
Merge branch 'm4/master'

7 years agoRevert these two commits temporarily to make the buttons merge easier
Mikael Magnusson [Tue, 2 Aug 2011 20:17:11 +0000 (22:17 +0200)]
Revert these two commits temporarily to make the buttons merge easier


7 years agoUpdate portuguese translation
Pedro Beja [Sat, 24 Apr 2010 20:21:23 +0000 (22:21 +0200)]
Update portuguese translation

7 years agoUpdate estonian translation
Mikael Magnusson [Thu, 22 Apr 2010 13:55:13 +0000 (15:55 +0200)]
Update estonian translation

7 years agoAdd Plural-Forms header to fi.po and remove fuzzy mark.
Mikael Magnusson [Sat, 13 Mar 2010 20:57:58 +0000 (21:57 +0100)]
Add Plural-Forms header to fi.po and remove fuzzy mark.

7 years agoUpdate polish translation.
Jakub Łojewski [Thu, 11 Mar 2010 13:29:41 +0000 (14:29 +0100)]
Update polish translation.

7 years agoFix some rebase artifacts
Mikael Magnusson [Thu, 14 Oct 2010 14:05:15 +0000 (16:05 +0200)]
Fix some rebase artifacts

7 years agoadd --disable options for x extensions release-3.5.0
Dana Jansens [Mon, 24 Jan 2011 19:06:56 +0000 (14:06 -0500)]
add --disable options for x extensions

so we can test compiling without them present