[gnome-control-center] Use the new gnome-settings-daemon DBus names now the power plugin has moved there
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Use the new gnome-settings-daemon DBus names now the power plugin has moved there
- Date: Mon, 4 Jul 2011 16:56:06 +0000 (UTC)
commit b5aa23b5ca0ff18f8365e52cbd5be7ab3d8ab54f
Author: Richard Hughes <richard hughsie com>
Date: Mon Jul 4 11:56:49 2011 +0100
Use the new gnome-settings-daemon DBus names now the power plugin has moved there
panels/power/cc-power-panel.c | 6 +++---
panels/screen/cc-screen-panel.c | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 45a89ce..dddfb16 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -523,9 +523,9 @@ cc_power_panel_init (CcPowerPanel *self)
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
NULL,
- "org.gnome.PowerManager",
- "/org/gnome/PowerManager",
- "org.gnome.PowerManager",
+ "org.gnome.SettingsDaemon",
+ "/org/gnome/SettingsDaemon/Power",
+ "org.gnome.SettingsDaemon.Power",
self->priv->cancellable,
got_power_proxy_cb,
self);
diff --git a/panels/screen/cc-screen-panel.c b/panels/screen/cc-screen-panel.c
index 5463d6c..75fb7ec 100644
--- a/panels/screen/cc-screen-panel.c
+++ b/panels/screen/cc-screen-panel.c
@@ -226,7 +226,7 @@ brightness_slider_value_changed_cb (GtkRange *range, gpointer user_data)
/* push this to g-p-m */
percentage = (guint) gtk_range_get_value (range);
g_dbus_proxy_call (priv->proxy,
- "SetBrightness",
+ "SetPercentage",
g_variant_new ("(u)",
percentage),
G_DBUS_CALL_FLAGS_NONE,
@@ -250,7 +250,7 @@ get_brightness_cb (GObject *source_object, GAsyncResult *res, gpointer user_data
{
gtk_widget_hide (WID ("screen_brightness_hscale"));
gtk_widget_hide (WID ("screen_auto_reduce_checkbutton"));
- g_debug ("Error getting brightness: %s", error->message);
+ g_warning ("Error getting brightness: %s", error->message);
g_error_free (error);
return;
}
@@ -292,7 +292,7 @@ got_power_proxy_cb (GObject *source_object, GAsyncResult *res, gpointer user_dat
/* get the initial state */
g_dbus_proxy_call (priv->proxy,
- "GetBrightness",
+ "GetPercentage",
NULL,
G_DBUS_CALL_FLAGS_NONE,
200, /* we don't want to randomly move the bar */
@@ -471,9 +471,9 @@ cc_screen_panel_init (CcScreenPanel *self)
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
NULL,
- "org.gnome.PowerManager",
- "/org/gnome/PowerManager/Backlight",
- "org.gnome.PowerManager.Backlight",
+ "org.gnome.SettingsDaemon",
+ "/org/gnome/SettingsDaemon/Power",
+ "org.gnome.SettingsDaemon.Power.Screen",
self->priv->cancellable,
got_power_proxy_cb,
self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]