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-17 12:59:16 -0500
commit95265d60fd99a87b1e06a0eee97756c7da5b6154 (patch)
tree6890c295c31c13c3503b270cb59d7311593dee71
parentc27933f2e1a0b889dfe972d498e325dd8e7eb885 (diff)
downloadgdm-95265d60fd99a87b1e06a0eee97756c7da5b6154.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