summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-16 08:52:05 -0500
committerRay Strode <rstrode@redhat.com>2015-02-16 23:36:03 -0500
commit9bdb5ad90d95a4125b2797fff234026b8f52b149 (patch)
treec0ecec8f87d11c849dedd2dfd2197a8bb683502b
parent63db0feea9cd378ae1d9ae0689f4d4a53720192a (diff)
downloadgdm-9bdb5ad90d95a4125b2797fff234026b8f52b149.tar.gz
display: drop base class implementation of manage vfunc
All it does is set the managed state, which the subclasses can do just as easily, so cut out some code.
-rw-r--r--daemon/gdm-display.c7
-rw-r--r--daemon/gdm-xdmcp-display.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index 742532e6..b206e88a 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -607,12 +607,6 @@ _gdm_display_set_status (GdmDisplay *self,
}
}
-static void
-gdm_display_real_manage (GdmDisplay *self)
-{
- _gdm_display_set_status (self, GDM_DISPLAY_MANAGED);
-}
-
static gboolean
gdm_display_real_prepare (GdmDisplay *self)
{
@@ -1329,7 +1323,6 @@ gdm_display_class_init (GdmDisplayClass *klass)
object_class->finalize = gdm_display_finalize;
klass->prepare = gdm_display_real_prepare;
- klass->manage = gdm_display_real_manage;
g_object_class_install_property (object_class,
PROP_ID,
diff --git a/daemon/gdm-xdmcp-display.c b/daemon/gdm-xdmcp-display.c
index 7241cafe..be2f0d58 100644
--- a/daemon/gdm-xdmcp-display.c
+++ b/daemon/gdm-xdmcp-display.c
@@ -205,7 +205,7 @@ gdm_xdmcp_display_manage (GdmDisplay *display)
g_timeout_add (500, (GSourceFunc)idle_connect_to_display, self);
- GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->manage (display);
+ g_object_set (G_OBJECT (self), "status", GDM_DISPLAY_MANAGED, NULL);
}
static void