Dana Jansens
475961e17f
parse Path, Terminal, and StartupNotify
2010-05-21 20:10:34 -04:00
Dana Jansens
0c8c9caba6
parse OnlyShowIn/NotShowIn
2010-05-21 20:03:21 -04:00
Dana Jansens
ab7673c816
remove a debug print in the keyboard obt stuff
2010-05-17 19:34:41 -04:00
Dana Jansens
5450618297
avoid new gcc warning (casting ** to const** is not valid for good reason)
2010-05-17 19:31:57 -04:00
Dana Jansens
5e424b81d2
found memory corruption in the obt xqueue and paths
2010-04-28 12:58:45 -04:00
Dana Jansens
55b84316bb
make an event queue for X events. the queue's min size is 16 XEvents (~3k)
2010-04-28 12:58:42 -04:00
Dana Jansens
3997d7aef5
add some comments for binary search
2010-04-16 20:56:27 +02:00
Dana Jansens
3afa20de54
stat() can give an error, handle that
2010-04-16 20:56:24 +02:00
Dana Jansens
262591ec1a
add BSEARCH() macros in obt/bsearch.h that to a binary search on an array, use it when searching for a group in obt_paths_try_exec()
2010-03-29 23:24:15 -04:00
Dana Jansens
3121146ecc
parse some of the .desktop stuff into an ObtLink structure
...
localized names still don't work.
most of the app-specific stuff isn't done yet.
categories aren't handled yet (to only show in/not show in some category)
2010-03-29 22:38:05 -04:00
Dana Jansens
67bed35b7c
add obt_paths_try_exec() that will see if an executable exists
2010-03-29 22:32:07 -04:00
Dana Jansens
11bb31d3bc
figure out what type the value should be for each known .desktop key, and watch for invalid keys
2010-03-25 22:04:48 -04:00
Dana Jansens
0d90bd57ab
Add a new ObtLink type, which is going to be a generalization of a .desktop entry.
...
Move the .desktop file parsing details into obt/ddparse.c, which generates
some hash tables holding the data of the file.
Add a new obt/link.c which will build an ObtLink from a parsed .desktop file,
and may support other ways to create these links in the unforseeable future
2010-03-25 21:11:15 -04:00
Dana Jansens
749d6f0938
save key values based on their value, but we dont know what values they have yet
2010-03-25 19:31:57 -04:00
Dana Jansens
a1fa5dca08
add an empty function to parse the Desktop Entry group in a .desktop file
2010-03-25 18:11:13 -04:00
Dana Jansens
00fb4d392f
parse key/value pairs from the .desktop file and save them in a hashtable
2010-03-25 18:11:13 -04:00
Dana Jansens
448cc6620e
close the .desktop file after parsing it
2010-03-25 18:11:13 -04:00
Dana Jansens
159a3cb3b1
free the path after done with it
2010-03-25 18:11:13 -04:00
Dana Jansens
4e70343b3e
g_warning adds a \n
2010-03-25 18:11:13 -04:00
Dana Jansens
5ca9c2e03c
watch for groups in .desktop files and remember the current group. validate the names, and make sure no duplicates and "Desktop Entry" comes first
2010-03-25 18:11:13 -04:00
Dana Jansens
4968f7c62a
avoid ascii control characters in strings
2010-03-25 18:11:13 -04:00
Dana Jansens
70e819a905
add beginning of .desktop file parsing, grabs a line of text from the input file at a time and strips out any \0 characters
2010-03-25 18:11:13 -04:00
Dana Jansens
4f28035639
make enum values match numbers in the spec, and make the .desktop file reader function take a list of paths to look for the file in
2010-03-25 18:11:13 -04:00
Dana Jansens
4cff6c0e3b
add function to give the list of autostart directories
2010-03-25 18:11:13 -04:00
Dana Jansens
0b9910b442
add some functions for parsing a value in a .desktop file
2010-03-25 18:11:13 -04:00
Dana Jansens
59c831642a
make array large enough
2010-02-19 17:17:14 -05:00
Dana Jansens
b7ddaa5728
get the modifier mask for a modifier key that is pressed/released more accurately, using the table we built already for other purposes
2010-02-19 16:59:28 -05:00
Dana Jansens
4d28614680
Add skeleton for start of dot-desktop-file parser
2010-02-16 22:10:07 -05:00
Dana Jansens
d179d6428a
more using g_slice_new() instead of g_new()
2010-02-16 16:32:38 -05:00
Dana Jansens
3f5403a916
make the obt .pc file do -lobt, not -lobrender
2010-02-12 15:09:03 -05:00
Dana Jansens
890e13b919
use g_slice_new() instead of g_new() part 3
2010-02-12 14:03:24 -05:00
Dana Jansens
98c86118ca
have obt refresh the xlib keyboard stuff on mappingnotify events
2010-02-12 13:31:49 -05:00
Dana Jansens
7c2eb3a781
destroy XIC's that belong to an XIM before closing the XIM, else Xlib will seggie!
2010-02-12 09:37:46 -05:00
Mikael Magnusson
aa5394cad2
Check node->name for null
...
Seems to happen sometimes with a well placed xml comment.
2010-02-12 05:07:44 +01:00
Dana Jansens
35ce211ec3
dont print warnings when reading keys which dont generate text
2010-02-11 15:15:01 -05:00
Dana Jansens
096dad0c6c
make control keys work in menus/dialogs/etc with the new obt code, using XLookup stuff
2010-02-11 15:07:08 -05:00
Dana Jansens
41dbce908a
make obt translate keypress events to a valid utf8 character (note this makes openbox not compile)
2010-02-11 14:06:00 -05:00
Dana Jansens
8f1ea42bb1
add interface in obt to create an Input Context for a window
2010-02-11 11:27:36 -05:00
Dana Jansens
6e280e9f53
create an X Input Method in obt for the app to use for all input
2010-02-11 11:16:17 -05:00
Dana Jansens
8add92416d
check the xkb version before using it
2010-02-11 11:01:18 -05:00
Dana Jansens
e9070fe7da
dont assert when there is no valid key layout present
2010-02-09 21:01:58 -05:00
Dana Jansens
6cf3357036
allow app rules to match windows by their title when mapping
...
and save the title in the _OB_APP_TITLE property
2010-01-14 18:41:21 -05:00
Dana Jansens
567fd15eeb
Merge branch 'backport' into work
...
Conflicts:
configure.ac
data/rc.xml
openbox/client.c
openbox/event.c
openbox/focus_cycle.c
openbox/focus_cycle_popup.c
openbox/openbox.c
openbox/prop.c
openbox/prop.h
openbox/screen.c
parser/parse.c
version.h.in
2010-01-11 16:20:53 -05:00
Dana Jansens
7cf9f174db
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
Dana Jansens
ce24cbd045
check more headers before including them
2009-12-21 16:17:48 -05:00
Dana Jansens
b06b684589
rename the obt_parse library to obt_xml (since it is very xml specific)
2009-12-21 14:08:38 -05:00
Dana Jansens
04dc598a1f
add obt_parse_save_file() method to the obt parse library
2009-12-21 14:08:38 -05:00
Dana Jansens
7aae8cc526
Set up work for making a 3.5 prerelease.
...
Set version stuff to 3.5.0-rc1.
Copy the CHANGELOG from 3.4-working.
Rename the obt-4.0 and obrender-4.0 pkgconfig stuff to obt-3.5 and obrender-3.5
Rename the "render" directory to "obrender" so that the public headers can be
installed in <obrender/*>
2009-12-21 14:08:34 -05:00
Dana Jansens
50d6626811
Merge branch 'backport' into work
...
Conflicts:
obt/keyboard.c
obt/keyboard.h
openbox/event.c
openbox/menuframe.c
openbox/moveresize.c
openbox/openbox.c
openbox/screen.c
2009-12-16 15:39:25 -05:00
Dana Jansens
acafa38c8e
Merge branch 'backport' into work
...
Conflicts:
openbox/config.c
openbox/event.c
openbox/prop.c
openbox/prop.h
openbox/screen.c
openbox/screen.h
2009-12-11 19:02:11 -05:00