session: Call update_info() if service changes
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 28 Apr 2011 16:05:06 +0000 (18:05 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 2 May 2011 16:17:34 +0000 (18:17 +0200)
commiteb1dd03b810c3118495412884565af3d26669fad
tree2fca42c9736ba6f43cbcaf76bb14dd9950044a7e
parent0462efb2da82a944e548913b5e342267a70684bd
session: Call update_info() if service changes

Instead of trying to figure out when to call update_info() at various
places, just call update_info() at the end of session_changed when the
selected service has been changed.

Another noteworthy change is the remove of g_timeout_add_seconds(...,
session_notify(), ...). It was introduced to 'fix' a problem where
sometimes the notification message was not send. The source of this
problem seemed to be that session_notify() couldn't be called if the
current context was called from a incoming D-Bus call
(e.g. Session.Connect()). Though without g_timeout_add_seconds it
still works now. So it's properly better to remove it again since it's
seems not necessary.
src/session.c