[gnome-settings-daemon/docking-stations] Remove the XRANDR.Interal DBus interface
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/docking-stations] Remove the XRANDR.Interal DBus interface
- Date: Wed, 7 Dec 2011 19:11:45 +0000 (UTC)
commit 0b85097995e6961b3e995bd6d5543bd0a95d8e7a
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Dec 7 11:25:42 2011 -0600
Remove the XRANDR.Interal DBus interface
We'll use a direct GObject signal connection to the shared UpClient.
Signed-off-by: Federico Mena Quintero <federico gnome org>
plugins/xrandr/gsd-xrandr-manager.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index eb7ebf1..a31b513 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -96,11 +96,6 @@ static const gchar introspection_xml[] =
" <arg name='timestamp' type='x' direction='in'/>"
" </method>"
" </interface>"
-" <interface name='org.gnome.SettingsDaemon.XRANDR.Internal'>"
-" <annotation name='org.freedesktop.DBus.GLib.CSymbol' value='internal'/>"
-" <method name='LidStateChanged'>"
-" </method>"
-" </interface>"
"</node>";
struct GsdXrandrManagerPrivate
@@ -2158,21 +2153,6 @@ handle_method_call_xrandr_2 (GsdXrandrManager *manager,
}
static void
-handle_method_call_internal (GsdXrandrManager *manager,
- const gchar *method_name,
- GVariant *parameters,
- GDBusMethodInvocation *invocation)
-{
- g_debug ("Calling method '%s' for org.gnome.SettingsDaemon.XRANDR.Internal", method_name);
-
- if (g_strcmp0 (method_name, "LidStateChanged") == 0) {
- lid_state_changed (manager);
- g_dbus_method_invocation_return_value (invocation, NULL);
- } else
- g_warning ("unknown method: %s", method_name);
-}
-
-static void
handle_method_call (GDBusConnection *connection,
const gchar *sender,
const gchar *object_path,
@@ -2188,8 +2168,6 @@ handle_method_call (GDBusConnection *connection,
if (g_strcmp0 (interface_name, "org.gnome.SettingsDaemon.XRANDR_2") == 0)
handle_method_call_xrandr_2 (manager, method_name, parameters, invocation);
- else if (g_strcmp0 (interface_name, "org.gnome.SettingsDaemon.XRANDR.Internal") == 0)
- handle_method_call_internal (manager, method_name, parameters, invocation);
else
g_warning ("unknown interface: %s", interface_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]