diff options
author | William Brown <[email protected]> | 2013-06-27 10:17:08 +0930 |
---|---|---|
committer | William Brown <[email protected]> | 2013-06-27 10:17:08 +0930 |
commit | 0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff (patch) | |
tree | 730860e4f9b26d517a67ff31d2fe454f4886b1d4 /src/gpm-kbd-backlight.c | |
parent | 4d842135ce677957aee8bd5bb47f875b0ece570a (diff) | |
download | mate-power-manager-0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff.tar.bz2 mate-power-manager-0d07b0bbc9a76b5401bee7f0c8132af8e8d558ff.tar.xz |
RHBZ #964678 : Patch that provides DBUS interface to control KbdBacklight.
Diffstat (limited to 'src/gpm-kbd-backlight.c')
-rw-r--r-- | src/gpm-kbd-backlight.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index 72c4f96..5bb8ae2 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -31,21 +31,6 @@ #include "gpm-kbd-backlight.h" #include "gsd-media-keys-window.h" -static const gchar *kbd_backlight_introspection = "" -"<?xml version=\"1.0\" encoding=\"UTF-8\"?>""<node name=\"/\">" - "<interface name=\"org.mate.PowerManager.Backlight\">" - "<method name=\"GetBrightness\">" - "<arg type=\"u\" name=\"percentage_brightness\" direction=\"out\"/>" - "</method>" - "<method name=\"SetBrightness\">" - "<arg type=\"u\" name=\"percentage_brightness\" direction=\"in\"/>" - "</method>" - "<signal name=\"BrightnessChanged\">" - "<arg type=\"u\" name=\"percentage_brightness\" direction=\"out\"/>" - "</signal>" - "</interface>" -"</node>"; - #define GPM_KBD_BACKLIGHT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GPM_TYPE_KBD_BACKLIGHT, GpmKbdBacklightPrivate)) struct GpmKbdBacklightPrivate @@ -430,40 +415,6 @@ gpm_kbd_backlight_dbus_property_set (GDBusConnection *connection, return FALSE; } -/** - * gpm_kbd_backlight_register_dbus: - * @backlight: - * @connection: - * @error: - **/ -void -gpm_kbd_backlight_register_dbus (GpmKbdBacklight *backlight, - GDBusConnection *connection, - GError **error) -{ - GDBusNodeInfo *node_info; - GDBusInterfaceInfo *interface_info; - GDBusInterfaceVTable interface_vtable = { - gpm_kbd_backlight_dbus_method_call, - gpm_kbd_backlight_dbus_property_get, - gpm_kbd_backlight_dbus_property_set - }; - - node_info = g_dbus_node_info_new_for_xml (kbd_backlight_introspection, NULL); - interface_info = g_dbus_node_info_lookup_interface (node_info, GPM_DBUS_INTERFACE_BACKLIGHT); - - backlight->priv->bus_connection = g_object_ref (connection); - backlight->priv->bus_object_id = - g_dbus_connection_register_object (connection, - GPM_DBUS_PATH_KBD_BACKLIGHT, - interface_info, - &interface_vtable, - backlight, - NULL, - error); - g_dbus_node_info_unref (node_info); -} - static gboolean gpm_kbd_backlight_evaluate_power_source_and_set (GpmKbdBacklight *backlight) { |