summaryrefslogtreecommitdiff
path: root/daemon/gdm-display.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-17 16:18:15 -0500
committerRay Strode <rstrode@redhat.com>2015-02-18 17:34:14 -0500
commit4aa775b748f79bfc5b37a191184f32e212dd679d (patch)
treeb131dd3615dc0d243c4a39138891ca9591408bdd /daemon/gdm-display.c
parentd1058c37f5705854b4fe48d71dd39104686cdaca (diff)
downloadgdm-4aa775b748f79bfc5b37a191184f32e212dd679d.tar.gz
display: don't export so much stuff over system bus
When the slave was in a different process we needed to interact with the display in the manager process remotely. Now it's all one process and we don't, so clean up what gets exported over the bus. https://bugzilla.gnome.org/show_bug.cgi?id=744764
Diffstat (limited to 'daemon/gdm-display.c')
-rw-r--r--daemon/gdm-display.c122
1 files changed, 0 insertions, 122 deletions
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index b3cc0c8e..4339cbb3 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -1064,62 +1064,6 @@ handle_get_seat_id (GdmDBusDisplay *skeleton,
}
static gboolean
-handle_get_timed_login_details (GdmDBusDisplay *skeleton,
- GDBusMethodInvocation *invocation,
- GdmDisplay *self)
-{
- gboolean enabled;
- char *username;
- int delay;
-
- gdm_display_get_timed_login_details (self, &enabled, &username, &delay);
-
- gdm_dbus_display_complete_get_timed_login_details (skeleton,
- invocation,
- enabled,
- username ? username : "",
- delay);
-
- g_free (username);
- return TRUE;
-}
-
-static gboolean
-handle_get_x11_authority_file (GdmDBusDisplay *skeleton,
- GDBusMethodInvocation *invocation,
- GdmDisplay *self)
-{
- char *file;
-
- gdm_display_get_x11_authority_file (self, &file, NULL);
-
- gdm_dbus_display_complete_get_x11_authority_file (skeleton, invocation, file);
-
- g_free (file);
- return TRUE;
-}
-
-static gboolean
-handle_get_x11_cookie (GdmDBusDisplay *skeleton,
- GDBusMethodInvocation *invocation,
- GdmDisplay *self)
-{
- const char *x11_cookie;
- gsize x11_cookie_size;
- GVariant *variant;
-
- gdm_display_get_x11_cookie (self, &x11_cookie, &x11_cookie_size, NULL);
-
- variant = g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
- x11_cookie,
- x11_cookie_size,
- sizeof (char));
- gdm_dbus_display_complete_get_x11_cookie (skeleton, invocation, variant);
-
- return TRUE;
-}
-
-static gboolean
handle_get_x11_display_name (GdmDBusDisplay *skeleton,
GDBusMethodInvocation *invocation,
GdmDisplay *self)
@@ -1135,20 +1079,6 @@ handle_get_x11_display_name (GdmDBusDisplay *skeleton,
}
static gboolean
-handle_get_x11_display_number (GdmDBusDisplay *skeleton,
- GDBusMethodInvocation *invocation,
- GdmDisplay *self)
-{
- int name;
-
- gdm_display_get_x11_display_number (self, &name, NULL);
-
- gdm_dbus_display_complete_get_x11_display_number (skeleton, invocation, name);
-
- return TRUE;
-}
-
-static gboolean
handle_is_local (GdmDBusDisplay *skeleton,
GDBusMethodInvocation *invocation,
GdmDisplay *self)
@@ -1177,46 +1107,6 @@ handle_is_initial (GdmDBusDisplay *skeleton,
}
static gboolean
-handle_add_user_authorization (GdmDBusDisplay *skeleton,
- GDBusMethodInvocation *invocation,
- const char *username,
- GdmDisplay *self)
-{
- char *filename;
- GError *error = NULL;
-
- if (gdm_display_add_user_authorization (self, username, &filename, &error)) {
- gdm_dbus_display_complete_add_user_authorization (skeleton,
- invocation,
- filename);
- g_free (filename);
- } else {
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
- }
-
- return TRUE;
-}
-
-static gboolean
-handle_remove_user_authorization (GdmDBusDisplay *skeleton,
- GDBusMethodInvocation *invocation,
- const char *username,
- GdmDisplay *self)
-{
- GError *error = NULL;
-
- if (gdm_display_remove_user_authorization (self, username, &error)) {
- gdm_dbus_display_complete_remove_user_authorization (skeleton, invocation);
- } else {
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
- }
-
- return TRUE;
-}
-
-static gboolean
register_display (GdmDisplay *self)
{
GError *error = NULL;
@@ -1238,24 +1128,12 @@ register_display (GdmDisplay *self)
G_CALLBACK (handle_get_remote_hostname), self);
g_signal_connect (self->priv->display_skeleton, "handle-get-seat-id",
G_CALLBACK (handle_get_seat_id), self);
- g_signal_connect (self->priv->display_skeleton, "handle-get-timed-login-details",
- G_CALLBACK (handle_get_timed_login_details), self);
- g_signal_connect (self->priv->display_skeleton, "handle-get-x11-authority-file",
- G_CALLBACK (handle_get_x11_authority_file), self);
- g_signal_connect (self->priv->display_skeleton, "handle-get-x11-cookie",
- G_CALLBACK (handle_get_x11_cookie), self);
g_signal_connect (self->priv->display_skeleton, "handle-get-x11-display-name",
G_CALLBACK (handle_get_x11_display_name), self);
- g_signal_connect (self->priv->display_skeleton, "handle-get-x11-display-number",
- G_CALLBACK (handle_get_x11_display_number), self);
g_signal_connect (self->priv->display_skeleton, "handle-is-local",
G_CALLBACK (handle_is_local), self);
g_signal_connect (self->priv->display_skeleton, "handle-is-initial",
G_CALLBACK (handle_is_initial), self);
- g_signal_connect (self->priv->display_skeleton, "handle-add-user-authorization",
- G_CALLBACK (handle_add_user_authorization), self);
- g_signal_connect (self->priv->display_skeleton, "handle-remove-user-authorization",
- G_CALLBACK (handle_remove_user_authorization), self);
g_dbus_object_skeleton_add_interface (self->priv->object_skeleton,
G_DBUS_INTERFACE_SKELETON (self->priv->display_skeleton));