summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpm-kbd-backlight.c100
1 files changed, 0 insertions, 100 deletions
diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c
index 2b201f1..c75b9ab 100644
--- a/src/gpm-kbd-backlight.c
+++ b/src/gpm-kbd-backlight.c
@@ -324,106 +324,6 @@ gpm_kbd_backlight_on_dbus_signal (GDBusProxy *proxy,
g_debug ("signal '%s' not handled!", signal_name);
}
-/**
- * gpm_kbd_backlight_dbus_method_call:
- * @connection:
- * @object_path:
- * @interface_name:
- * @method_name:
- * @parameters:
- * @invocation:
- * @user_data:
- **/
-static void
-gpm_kbd_backlight_dbus_method_call (GDBusConnection *connection,
- const gchar *sender,
- const gchar *object_path,
- const gchar *interface_name,
- const gchar *method_name,
- GVariant *parameters,
- GDBusMethodInvocation *invocation,
- gpointer user_data)
-{
- guint value;
- gboolean ret;
- GError *error = NULL;
- GpmKbdBacklight *backlight = GPM_KBD_BACKLIGHT (user_data);
-
- if (g_strcmp0 (method_name, "GetBrightness") == 0) {
- ret = gpm_kbd_backlight_get_brightness (backlight, &value, &error);
- if (!ret) {
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
- } else {
- g_dbus_method_invocation_return_value (invocation, g_variant_new ("(u)", value));
- }
- return;
- }
-
- if (g_strcmp0 (method_name, "SetBrightness") == 0) {
- g_variant_get (parameters, "(u)", &value);
- ret = gpm_kbd_backlight_set_brightness (backlight, value, &error);
- if (!ret) {
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
- } else {
- g_dbus_method_invocation_return_value (invocation, NULL);
- }
- return;
- }
-
- g_assert_not_reached ();
-}
-
-
-/**
- * gpm_kbd_backlight_dbus_property_get:
- * @sender:
- * @object_path:
- * @interface_name:
- * @property_name:
- * @error:
- * @user_data:
- *
- * Return value:
- **/
-static GVariant *
-gpm_kbd_backlight_dbus_property_get (GDBusConnection *connection,
- const gchar *sender,
- const gchar *object_path,
- const gchar *interface_name,
- const gchar *property_name,
- GError **error,
- gpointer user_data)
-{
- /* Do nothing, we have no props */
- return NULL;
-}
-
-/**
- * gpm_kbd_backlight_dbus_property_set:
- * @connection:
- * @sender:
- * @object_path:
- * @interface_name:
- * @property_name:
- *
- * Return value:
- **/
-static gboolean
-gpm_kbd_backlight_dbus_property_set (GDBusConnection *connection,
- const gchar *sender,
- const gchar *object_path,
- const gchar *interface_name,
- const gchar *property_name,
- GVariant *value,
- GError **error,
- gpointer user_data)
-{
- /* do nothing, no properties defined */
- return FALSE;
-}
-
static gboolean
gpm_kbd_backlight_evaluate_power_source_and_set (GpmKbdBacklight *backlight)
{