Commit Graph

56 Commits

Author SHA1 Message Date
Julien Danjou 019608aa9e dbus: check that interface is not NULL (FS#667)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-09 20:49:37 +01:00
Julien Danjou 1dfa2c2a8d dbus: field can be nil
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-09 20:49:02 +01:00
Julien Danjou 1c54d2fd12 dbus: fix crash if interface is NULL
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-05 14:42:38 +02:00
Julien Danjou b2297fda46 globalconf: remove config.h include
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-07 17:28:55 +02:00
Brian Gianforcaro 73aa29645f Added documentation to D-Bus functions. Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 18:18:04 +02:00
Julien Danjou 6dc68905dc dbus: check for signal uniqness
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 81d44ec5c4 dbus: call only one signal handler by interface
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 299bc00286 dbus: move to signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-29 16:10:29 +02:00
Uli Schlachter 55524ece8d Use a libev prepare watcher for calling awesome_refresh()
Before this, awesome_refresh() could be called multiple times per mainloop and
one had to make sure to add awesome_refresh() calls in the right places.

Now, the prepare handler is invoked just before libev puts the process to sleep
(e.g. by calling select()) and awesome_refresh() does its thing.

All redundant calls to awesome_refresh() are removed, but the one in
selection.c has to stay because this function blocks in xcb_wait_for_event()
without using libev.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-19 09:34:42 +02:00
Julien Danjou acf4202143 dbus: do not exit on bus disconnection
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-17 10:27:54 +02:00
Jonny Lamb 88be323e4a dbus: Use org.naquadah.awesome instead of org.awesome.
http://dbus.freedesktop.org/doc/dbus-specification.html#naming-conventions

Signed-off-by: Jonny Lamb <jonny@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-15 20:42:28 +02:00
Julien Danjou e4acb74a5a luaa: split dofunction()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:44:29 +02:00
Julien Danjou 0c800d9612 dbus: use dbus_bool_t when reading messages
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 22:40:02 +02:00
Julien Danjou 6993f088b1 dbus: use dbus_bool_t for pushing boolean
dbus_bool_t is 32 bits (has to be for the wire protocol) but our bool is
only 8 bits.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 22:37:48 +02:00
Julien Danjou 2dffbe9c72 dbus: fix cleanup code
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:54:09 +02:00
Julien Danjou 3831c84a84 dbus: do not exit on disconnection
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:49:58 +02:00
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