session: Refactor session_changed
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 28 Apr 2011 06:46:50 +0000 (08:46 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 28 Apr 2011 15:31:28 +0000 (17:31 +0200)
commitc14f115cf1a8d9703fb91917c908ec4bf9b3487a
tree55e86656ed839324b0a22be80245f3ff47b5ffef
parentd77b2a93565ddd029fd57e29c71806f6b32e4f0f
session: Refactor session_changed

Pass the type of the trigger into session_changed. With this
additional information it's simpler to decide what to do and it allows
calling session_notify inside session_changed either directly or via
g_timeout_add_seconds.
src/session.c