Julien Danjou
dc29720ef7
Replace lua_newtable() with lua_createtable()
...
Lua can preallocate space in table for array or non-array elements type.
This should improve performance when setting table, so when we can we
use lua_createtable() since this is just a gain.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-25 15:04:27 +02:00
Julien Danjou
467737250c
dbus: allow usage of the system bus
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 16:07:31 +02:00
Julien Danjou
fac192f6ef
dbus: fix warning message
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 15:00:10 +02:00
Julien Danjou
f473a107b0
cleanup #includes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:52:25 +02:00
Uli Schlachter
4b82608952
Remove the argument to awesome_refresh()
...
awesome_refresh() had a xcb_connection_t as first argument. Since there is
only one connection to the X server, this argument doesn't really have any
alternatives to globalconf.connection and thus makes no sense.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 18:02:49 +02:00
Uli Schlachter
95457c5ab7
Move the definition of globalconf into a header file
...
Pretty much every single source file needs this struct, so it makes sense to
define it in a common header instead of in every single .c file.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 16:32:42 +02:00
Julien Danjou
82329ad78a
dbus: refresh everything after message has been handled
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 13:57:27 +02:00
Alex Cornejo
106e6ed5ab
Styling inconsistencies
...
Cheers,
Alex
From b5816ec55073507d4527ad3a77eae1878adb30d3 Mon Sep 17 00:00:00 2001
From: Alex Cornejo <acornejo@gmail.com>
Date: Sun, 29 Mar 2009 14:24:27 -0400
Subject: [PATCH] Fixed some styling issues.
Noticed in the latest pull that a commit introduced a lot of styling
inconsistencies, decided to remove those and others found by a simple
grep.
Signed-off-by: Alex Cornejo <acornejo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-30 12:53:12 +02:00
Julien Danjou
56e7262cc5
dbus: add support for fixed size array of boolean
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:59 +01:00
Julien Danjou
d61068f5d5
dbus: add support for fixed size array of double
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:59 +01:00
Julien Danjou
7e36c9df91
dbus: add support for fixed size byte array
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:59 +01:00
Julien Danjou
6e1c9875c5
dbus: add support for struct
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:59 +01:00
Julien Danjou
dd862007a9
dbus: fix fixed array handling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-11 16:20:39 +01:00
Julien Danjou
01a74e9c9e
dbus: push nil on unhandled elements
...
That fix the handling of dict in case we do not handle the value, we
would get:
dict entry (
type
type-not-handled
)
returned as 1 value (the key), and lua_rawset() would fail later.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-10 09:17:00 +01:00
Julien Danjou
06cbcbc9bb
dbus: add match bindings
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
Julien Danjou
c0e6113e0b
dbus: add support for return values
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:28 +01:00
Julien Danjou
fcf6151592
dbus: add release_name() method
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:28 +01:00
Julien Danjou
79ae3ab72a
dbus: export in Lua request_name()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:28 +01:00
Julien Danjou
a4254b195d
dbus: add D-Bus hooks
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
cccd04b2c4
dbus: refer to D-BUs
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-18 15:20:50 +01:00
Julien Danjou
608b2e2647
dbus, lua: set CLOEXEC on fds
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-27 14:20:51 +02:00
Julien Danjou
6f1a4609c3
dbus: simply execute call
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-08 14:40:41 +02:00
Julien Danjou
5a5a1b32c3
dbus: remove spurious printf
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-08 10:55:18 +02:00
Julien Danjou
3de2bf3918
dbus: add client support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-08 10:54:57 +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
Pierre Habouzit
38f8d2fdce
Plug dbus in the event loop.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-16 23:51:07 +02:00
Pierre Habouzit
b95f06e4ae
bogus guard: you mean WITH_DBUS not HAVE_DBUS
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-16 23:48:07 +02:00
Michael Gehring
2cb52ca2d1
make D-BUS optional
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-31 08:33:21 +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
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
effaa99b91
[awesome] Remove useless includes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:35 +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
9058bd1fd3
[dbus] Poll on dbus connection fd
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
dfa0cbcb8d
[dbus] Rename conn
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
290672ba09
[dbus] init var
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:05 +02:00
Julien Danjou
bc0f8cc178
[dbus] Remove unused var
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00
Julien Danjou
b348af16e2
[dbus] first support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00