Cleaned up and refactorized code for some D-Bus handlers test-faster-startup
authorMario Sanchez Prada <msanchez@igalia.com>
Wed, 28 Oct 2009 08:44:37 +0000 (09:44 +0100)
committerMario Sanchez Prada <msanchez@igalia.com>
Wed, 28 Oct 2009 09:18:57 +0000 (10:18 +0100)
commitc3e1b82d2f1781709704be75894a302be773de8a
tree5946ac4839427c9ffcc1289b4cf0806a80cdebe2
parent6a482b3643bf94c4cdc0a24438277fb23249841a
Cleaned up and refactorized code for some D-Bus handlers

* src/dbus.cc (dbus_top_application): New function to handle the
"top_application" D-Bus message.
(dbus_show_check_for_updates_view): New function to handle the
"dbus_show_check_for_updates_view" D-Bus message.
(dbus_showing_check_for_updates_view): New function to handle the
"dbus_showing_check_for_updates_view" D-Bus message.
(dbus_check_for_updates): New function to handle the
"dbus_check_for_updates" D-Bus message.
(dbus_handler): Use the new functions above to handle every D-Bus
message when they arrive, instead of having all the code for each of
them directly in the "if" branches.
src/dbus.cc