Commit Graph

406 Commits

Author SHA1 Message Date
Julien Danjou 3b895d84ed mouse: rework mouse buttons API, support release events
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:53 +02:00
Radosław Szkodziński ad9c8cfd16 tasklist: add support for backward ordering - tasklist.invert
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:53 +02:00
Julien Danjou 2da065329b textbox: do not invalidate on _index
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-11 15:43:15 +02:00
Julien Danjou 022879e8be textbox: reinit draw parser data
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-02 14:03:11 +02:00
Julien Danjou 1d1eee5f3c taglist: fix memory leak with array area
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-30 10:40:43 +02:00
Julien Danjou c3f0335cd2 progressbar: add fake struct to build doc
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-29 13:55:09 +02:00
Julien Danjou 033d7c82bc progressbar: fix vertical type and document fields
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-29 13:52:25 +02:00
Julien Danjou 23707aafcf graph: add documentation
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-29 13:48:47 +02:00
Julien Danjou 2dda972561 textbox: overwrite extents to 0 on nil
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-15 01:11:39 +02:00
Julien Danjou 5ad9b2025c textbox: stop parsing text on each draw
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-14 00:06:38 +02:00
Julien Danjou 57b7d39cdb textbox: allow nil as value for text
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-12 18:13:23 +02:00
Kanru Chen 553b03809f graph: fix xcolor reqs index.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-12 16:29:01 +02:00
Arnaud Fontaine 193a73c5d9 draw: make xcolor_init() asynchronous. 2008-08-12 14:53:57 +02:00
Julien Danjou 1fbe4f0d5e ewmh: store NET_WM icon
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 23:10:02 +02:00
Arnaud Fontaine b655f6348c xutil: rename xutil functions according to the rest of code. 2008-08-11 18:05:35 +02:00
Julien Danjou 9f503e5a13 lua: rename luaA_function to luaA_ref
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 10:12:36 +02:00
Julien Danjou 4b452510ba taglist: append area even if function fails
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-10 16:15:15 +02:00
Julien Danjou e7871ff8f8 statusbar: support systray kick out
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 17:23:37 +02:00
Julien Danjou 189157843a systray: remove has_systray
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 17:03:14 +02:00
Julien Danjou 254a39b6d3 statusbar: handle systray invisibility
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 16:59:54 +02:00
Julien Danjou 5b63807a15 systray: fix visible attribute
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 15:29:16 +02:00
Julien Danjou 9b364d0009 textbox: fix first drawing
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-01 17:44:51 +02:00
Julien Danjou 81ae462a70 focus: remove focus history
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-31 17:30:01 +02:00
Julien Danjou 76274065be taglist: fix width with background image
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-30 09:40:54 +02:00
Julien Danjou 3db9f29453 appicon: new widget, used in titlebar
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 16:51:21 +02:00
Julien Danjou bf209f87bb ewmh: introduce and use netwm_icon_delete()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 16:44:57 +02:00
Julien Danjou 731b309c85 textbox: fix background size computing
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 15:43:00 +02:00
Julien Danjou c4a01031c4 tasklist: add tags as cache element (FS#227)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 12:05:27 +02:00
Julien Danjou 4ba2e22bae widget: add detach callbacks
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 11:50:40 +02:00
Julien Danjou 5d063874b1 taglist: factorize tda lookup
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 11:38:56 +02:00
Julien Danjou 84ff146083 ta{g,sk}list: check dofunction return value
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 11:03:57 +02:00
Julien Danjou 80b79717ba various documentation update for _index()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-28 16:03:38 +02:00
Julien Danjou 09fd61fdfa tasklist: use label to determine which objects are drawn
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-28 15:57:17 +02:00
Julien Danjou 88891a21e8 taglist: remove show_empty attribute
This is doable in Lua.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-28 15:56:59 +02:00
Julien Danjou 1a539712d1 tasklist: use common markup parsing
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 17:11:37 +02:00
Julien Danjou 5fc500a861 draw: draw_text takes len as arg
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 15:35:19 +02:00
Julien Danjou 36fd44d1a0 draw: add char len as arg of xcolor_init()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 15:30:16 +02:00
Julien Danjou 750040be68 draw: text extents now gets len as arg
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 15:06:09 +02:00
Julien Danjou ad58260243 tasklist: use len and set it to 0 if no text
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 11:02:11 +02:00
Julien Danjou 354f37ef6c taglist: use callback function to get print text
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 11:02:11 +02:00
Julien Danjou f28b4c07b2 tasklist: stop using client markup
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 11:02:11 +02:00
Julien Danjou 3f46ec2152 tasklist: use a callback for label
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-09 12:12:52 +02:00
Julien Danjou 64e390e2a3 textbox: documente index
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 17:59:06 +02:00
marco candrian 2b767c2352 widgets: use vector_t for the color-gradients course.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 13:59:30 +02:00
marco candrian 3074c3fdf4 progressbar: cosmetic
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 13:59:25 +02:00
Pierre Habouzit 46ea7c45aa Get rid of the color name, and generate a #RGBA value on the fly if needed.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 11:09:10 +02:00
Pierre Habouzit 924078c898 Streamline xcolor_t.
Do not have a ->name char * field, but a char[32] instead.  This isn't a
big problem, the longest color in /etc/X11/rgb.txt is 23 chars long, and
if it becomes a problem one day, one could just strip the name and
generate an hexadecimal representation on the fly instead. But allocating
the name is asking for a lot of trouble.

Since we do not allocate anything anymore, just don't allocate anything
anymore at all, it avoids the mess of xcolor_copy/_wipe and fixes a lot of
sleeping bugs (p_dup were used e.g., which is wrong).

Pass xcolor_t *, xcolor_t becomes too big to be passed by value. Add
consts at some places.

xcolor_new allocates nothing, hence is renamed xcolor_init, has xcolor_t
as a first argument (OO-style, this is self), and doesn't touch the
structure at all if it returns false, which allow us to skip a lot of
intermediates values.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 10:36:46 +02:00
marco candrian 0c4b56a065 add fg_off to set + fix copy/paste typo
- widgets/progressbar.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 08:10:46 +02:00
Julien Danjou 5bb431fc4a widgets: don't tokenize twice
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-01 15:27:41 +02:00
Julien Danjou 9b74cdbc0a draw: iso2utf now gets len as arg
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-01 14:44:19 +02:00