Julien Danjou
45b0a2df80
lua: replace .new() by __call meth
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-30 14:11:54 +02:00
Julien Danjou
f2d2a10d9b
lua: remove luaA_name_init
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-30 13:50:49 +02:00
Pierre Habouzit
1b6543025c
Don't be silly and use our metatable rather than duplicating the effort.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-28 07:56:35 +02:00
Julien Danjou
1c5fc37eef
widgets: add newindex support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-27 12:43:39 +02:00
Pierre Habouzit
cde80ab49a
Move CLEANMASK to xutil.h, remove useless #Includes
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-26 22:47:56 +02:00
Julien Danjou
013b2afe62
remove useless #include
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 18:10:45 +02:00
Julien Danjou
094d0ebc50
widget: new widget index method
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 16:35:07 +02:00
Julien Danjou
db07fd0362
widget: add missing mouse_remove in index()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 15:56:55 +02:00
Julien Danjou
db88877587
lua: split getopt_string/getopt_lstring; fix mouse corner
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 17:33:05 +02:00
Julien Danjou
d5ed48ffdd
widget: use __index to get method
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-25 16:37:51 +02:00
Pierre Habouzit
b19aace542
Fix draw_align_fromstr calls.
...
Note that it's undefined to have side effects on an argument and pass this
argument again to another function.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-24 22:40:34 +02:00
Julien Danjou
ab5119732d
use more tokenizer, with len
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-23 14:01:33 +02:00
Julien Danjou
46f03fd6a6
area_t: make it smaller, use arrays instead of lists.
...
Make area_t smaller so that it fits in an uint64_t using 4 {u,}int16_t's
for it. Note that xcb uses the very same structure, so we aren't loosing
any information while remaining very small.
This is better to use arrays in term of:
* memory access when iterating over area_t's;
* allocation because area_t's have no *next/*prev members anymore, which
makes it a tiny structure (8 octets);
* allocation because we allocate area_t's by vector of'em rather than one
by one.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-22 22:09:48 +02:00
Julien Danjou
dc8a309c95
fix comments typo
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 20:00:24 +02:00
Julien Danjou
92f369e3aa
lua: userdata_new is now macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 18:31:35 +02:00
Julien Danjou
3bee2302bf
widget: use PIXMAP atom directly
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 21:23:38 +02:00
Arnaud Fontaine
b9e1ec69d0
Replace xcb_aux_get_screen() by a safer function
2008-06-17 17:14:00 +02:00
Julien Danjou
16646c86ab
lua: __eq methods are not macros
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-16 11:37:55 +02:00
Julien Danjou
6e36717163
lua: _gc are now macros
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-16 11:31:38 +02:00
Julien Danjou
a1a8f608b1
widget: fix documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-15 21:04:57 +02:00
Julien Danjou
5c50da78be
widget: use the right root window
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-15 16:29:12 +02:00
Julien Danjou
0f7a8f16c6
widget: check background pixmap != 0
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-15 16:14:39 +02:00
Julien Danjou
e5e379656a
systray: import widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-14 18:12:16 +02:00
Julien Danjou
1142c382f7
mouse: make button bindings objects
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-13 15:35:47 +02:00
Michael Gehring
276f5f8849
[doxygen] Add \lvalue and convert existing doc.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-11 07:36:34 +02:00
Michael Gehring
1ca55927f0
[doxygen] Convert Lua documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 20:12:51 +02:00
Julien Danjou
1049393840
Revert "Replace tags by workspaces"
...
This reverts commit 00f966ea04
.
Revert "[focus] Fix bogus arguments"
This reverts commit 816b5d16bc
.
Revert "[mouse] Fix bug with floating"
This reverts commit 89daa72790
.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 21:56:03 +02:00
Julien Danjou
00f966ea04
Replace tags by workspaces
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 16:30:46 +02:00
Michael Gehring
59c04890fc
[cleanup] random doxygen fixes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-08 17:13:09 +02:00
Julien Danjou
b3bb0faf36
[widget] Stop using useless screen fct
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-08 10:59:13 +02:00
Julien Danjou
4c41361d6c
[lua] Add object as argument to mouse click function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 19:21:21 +02:00
Julien Danjou
98119d5d3f
[lua] Check for object validity
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 18:27:10 +02:00
Julien Danjou
0a44e90cb6
[lua] Fix garbage collectors
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 18:17:47 +02:00
Julien Danjou
2742318f16
[common] Use pixmap instead of drawable type
...
It's just more clear.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 16:13:41 +02:00
Julien Danjou
5f2585d82e
[screen] s/get_display_area/display_area_get/
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 15:34:11 +02:00
Julien Danjou
80ec848130
[client] Add titlebar_get()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 13:36:13 +02:00
Julien Danjou
35b5afe38c
[widget] Move widget_get to statusbar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 13:25:34 +02:00
Julien Danjou
aecc3c0e45
[titlebar] Store titlebar inside client
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 11:50:21 +02:00
Julien Danjou
1e08a992b8
[titlebar] Rewrote titlebar based on widgets
...
This is the new titlebar handling code, based on widgets.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-03 18:41:54 +02:00
Julien Danjou
dfea3c3bba
[widget] Split out widget rendering
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-03 16:32:23 +02:00
Julien Danjou
34cd5504a7
[widget] Make button press event statusbar indep
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-03 11:40:50 +02:00
Julien Danjou
01fe4e3331
[statusbar] Remove multi-threading code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-31 16:04:46 +02:00
Julien Danjou
46603a108a
[widget] Documentation update.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-28 10:13:27 +02:00
Julien Danjou
a0b24c5505
[statusbar] Implement multi-threading per statusbar
...
More more efficient than before.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-27 11:17:51 +02:00
Julien Danjou
bdc8382474
[widget] Fix warning
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-25 17:39:46 +02:00
Julien Danjou
ab62a78884
[widget] Print error on unkown widget type
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-25 14:08:46 +02:00
Julien Danjou
c822a9ccf1
[widget] Rename WidgetConstructor to widget_constructor_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-25 14:07:01 +02:00
Julien Danjou
9d99ff48ae
[widget] Add luaA_widget_userdata_new() function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-24 19:58:25 +02:00
Julien Danjou
0bbd2d4b3e
Rename AwesomeConf to awesome_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-24 08:59:27 +02:00
Julien Danjou
be108acc32
[util] warn() and eprint() now print \n
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 22:56:05 +02:00
Julien Danjou
ffdb9727b7
[widget] Add a visible attribute to widgets and Lua functions
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 19:29:55 +02:00
Julien Danjou
97956822ee
[widget] Add lua function to get/set widget's name.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 16:41:33 +02:00
Julien Danjou
a04417494b
[mouse] Rename Button to button_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 15:12:01 +02:00
Julien Danjou
ccb2a2db77
[lua] Remove regex matching
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 13:17:02 +02:00
Julien Danjou
67598ab859
[widget] Remove useless warn()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 22:36:05 +02:00
Julien Danjou
7d34d0dd85
[dbus/widget] Correctly invalidate statusbars on update
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 20:25:49 +02:00
Julien Danjou
4742463cec
[dbus] Fix widget.set() API call
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 20:13:44 +02:00
Julien Danjou
1f046b3c9f
[everything] Switch from libconfuse to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 18:01:15 +02:00
Julien Danjou
255d91c711
[statusbar] Separate widget cache inside widets and sbars
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-13 16:48:33 +02:00
Julien Danjou
fb1ab46eea
[iconbox] Use a_strtobool()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-11 16:20:58 +02:00
Julien Danjou
deadca321c
[dbus] Implement widget.set method
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
6f6235acd5
[widget] Documentation fix
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
marco candrian
8fa33698d2
replace 'command' with 'new_value'
...
Describes it somebit better
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00
Julien Danjou
a73b07f5d3
[statusbar] Rename Statusbar type to statusbar_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Julien Danjou
0cd46ab6b1
[widgets] Rename Widget type to widget_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Arnaud Fontaine
dafafd077c
Port Awesome to XCB
2008-05-03 12:00:59 +02:00
marco candrian
ce17b1457e
[widgets] allow NULL for 'command' (FS#175)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-23 08:49:31 +02:00
Fabienne Ducroquet
b12a5235a5
[doc] Fix some typos, modify a few descriptions
...
Before awesome 2.3 release, I've decided to look for typos in the
awesome* manpages, here is the result. I've also modified some options'
descriptions that I didn't find very clear, I hope I have not
added/missed too many mistakes as I'm not a native English speaker...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-11 07:34:45 +02:00
Julien Danjou
40eaa6b997
[doc] Add a bunch of documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-08 09:45:48 +02:00
Julien Danjou
5f58d17d58
[widgets] Use statusbar name in widget_tell (FS#144)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-03 14:00:46 +02:00
Julien Danjou
c582f4397b
[widgets] Check for no value in uicb_widget_tell and only update sbar on no error
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-02 15:31:19 +02:00
marco candrian
2e6dccc5ac
make sure command is some text != ""
...
else call with command arg = NULL
No need to check for a_strlen(command) then on _tell anymore if command != NULL
2008-03-23 15:52:18 +01:00
Julien Danjou
1dc6012aea
Fix typo in comment
2008-03-23 15:52:17 +01:00
marco candrian
397aa33163
widget error infrastructure additions
2008-03-23 15:52:16 +01:00
Julien Danjou
0e69534a65
Add a common error infratructure for widget_tell
...
Signed-off-by: Marco Candrian <mac@calmar.ws>
2008-03-23 15:52:16 +01:00
marco candrian
3569ab617d
new property argument to widget _tell functions
...
actually the _tell function won't handle the new argument.
Coming patches will handle them.
it will need now something like this:
echo '0 widget_tell widget property value'
where property can be anything used in the awesomerc file,
that means what will be supported. Like: fg, fg_end, width, font...
(actually it ignores the property value and changes what have been changed in
the past as well.)
2008-03-23 15:52:16 +01:00
Julien Danjou
3d8b7565d4
Comments widgets functions
2008-03-06 11:41:26 +01:00
Julien Danjou
d7e679d2d7
add widget name in warnings
2008-02-28 16:19:03 +01:00
Julien Danjou
f54ff424a0
check widgets position
2008-02-25 20:09:19 +01:00
marco candrian
4ff0dae17e
trailing whitespaces removed
...
like:
find . -iname "*.txt" -o -iname "*.c" -o -iname "*.h" | xargs sed -i 's/\s\+$//'
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-13 09:05:10 +01:00
Julien Danjou
0bfa880b0f
add align option to widget to specify their alignment
2008-02-08 10:59:55 +01:00
Julien Danjou
ab8d95f13d
rework include
2008-01-29 11:27:14 +01:00
Julien Danjou
0bbbc7c9d5
break on first button found
2008-01-23 08:47:46 +01:00
Julien Danjou
668702b777
move list.h and util.[ch] to common/
2008-01-21 18:14:59 +01:00
Julien Danjou
5def70a8f0
autogenerate widget list
2008-01-21 16:31:14 +01:00
Julien Danjou
e0d87ae0d9
use a_strncpy
2008-01-21 16:31:14 +01:00
Julien Danjou
01f2f573b7
use a_str functions
2008-01-21 16:31:14 +01:00
Julien Danjou
e6c0449009
rename NameFuncLink to name_func_list_t
2008-01-21 16:31:13 +01:00
Julien Danjou
10f8493ffa
fix widget invalidation
2008-01-11 16:01:10 +01:00
Julien Danjou
5c9291ff0b
use a cache system for status bar
2008-01-07 18:12:38 +01:00
marco candrian
37da7d0d01
graph widget added
...
example config:
graph gr_cpu {
width = 80
height = "0.8"
fg = "#336633 "
bg = "#000000 "
bordercolor = "#669966 "
padding_left = 0
mouse = {...}
x = ...
y = ...
}
Looks like here: http://www.calmar.ws/tmp/112-Sun-screen.png
I renamed lpadding to padding_left, and bcolor to bordercolor
also on the progressbar widget.
The awesomerc page would still be to write, when this patch will get accepted.
Hints are always welcomed.
2008-01-06 20:51:40 +01:00
Julien Danjou
5770b56af0
allow negativ coords
2008-01-05 13:01:40 +01:00
Julien Danjou
609318cbec
use 2 vars for knowing if users supplied coords
2008-01-05 12:35:12 +01:00
Julien Danjou
a4c09d142c
add support for x,y coords supplying in widgets
2008-01-04 22:05:52 +01:00
Julien Danjou
1d6613349e
typedef enum Alignment
2008-01-04 19:17:20 +01:00
Julien Danjou
c4e88f9928
add new tasklist widget
2008-01-03 12:39:28 +01:00
Julien Danjou
f7f6951957
allow to have several statusbar
2007-12-30 21:00:34 +01:00
Julien Danjou
c900e37843
add mouse bindings to status bar
2007-12-27 15:49:00 +01:00
Julien Danjou
ddbdbb2ed3
new width: progressbar
2007-12-23 14:27:56 +01:00
Julien Danjou
c59ecf0127
use a_strdup
2007-12-23 13:43:12 +01:00
Julien Danjou
b0a8522466
rename a bunch of widget functions
2007-12-22 20:55:17 +01:00
Julien Danjou
8c898256b1
new widget: add support for netwmicon
2007-12-22 19:32:47 +01:00
Julien Danjou
9df4429ae3
cosmetics and add copyright
2007-12-22 15:46:57 +01:00
Julien Danjou
3f3748d4bd
new widget to draw icons from PNG image
2007-12-22 15:37:43 +01:00
Aldo Cortesi
7190e4fa48
Change awesome_config -> AwesomeConf.
...
All other struct definitions in the project follow this naming convention.
2007-12-19 10:43:02 +01:00
Aldo Cortesi
980afac1cf
Make sure all uicb_ functions have doxygen annotations.
...
Also refactor some indentation while I'm there.
2007-12-19 10:42:34 +01:00
Aldo Cortesi
ce556ec743
The preferred line length is 80 characters.
2007-12-18 11:27:26 +01:00
Aldo Cortesi
205f2c55ca
Make "Statusbar statusbar" the in VirtScreen "Statusbar *statusbar". This is
...
more consistent with the rest of the interface, and will make our life easier
when we have mulitiple statusbars per screen.
2007-12-18 11:26:18 +01:00
Aldo Cortesi
4723ab3627
This patch is a first draft of independently targetable textboxes, and a
...
protocol to speak to them. Given a textbox widget definition like this:
textbox mail {
default = 0
}
textbox time {}
We can update the boxes individually by going:
echo 0 tell_widget mail 10
echo 0 tell_widget time 12:01
Text boxes will dynamically resize to fit their contents. A textbox can be
cleared by going:
echo 0 tell_widget name
A text-box containing no text will take up 0 space in the bar, i.e. it will not
be visible at all
Textboxes now supersede statusbar_set_text, so this call has been removed.
2007-12-17 18:22:05 +01:00
Aldo Cortesi
7385815927
Add basic framework for uicb_widget_tell. For now, it does nothing, but stay
...
tuned.
2007-12-17 18:19:39 +01:00
Aldo Cortesi
5923c90aaa
Solidify widgets.
...
Factor out common initialisation into a common_new function. Copy the section
title into the Widget title attribute.
2007-12-16 12:57:47 +01:00
Aldo Cortesi
8880a3804e
Simplify widget draw interface.
2007-12-16 12:54:42 +01:00
Julien Danjou
ae7b2ed9d0
finish with NULL
2007-12-15 20:22:20 +01:00
Julien Danjou
602f921559
first try to get widget configurable
2007-12-15 18:21:02 +01:00
Julien Danjou
bf20f9cee9
rework widget.c
2007-12-15 13:37:34 +01:00
Aldo Cortesi
76ddf235ac
Widget-ise the statusbar.
...
We now have the beginnings of a flexible widget structure for the statusbar.
For now, there is no behavioural change, and the interface is a bit crude, but
watch this space!
2007-12-15 10:15:42 +01:00