summaryrefslogtreecommitdiff
path: root/daemon/gdm-local-display-factory.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-03 14:00:26 -0500
committerRay Strode <rstrode@redhat.com>2015-02-18 17:34:11 -0500
commit2cb9568900adc5fd7f7f5033ae746b91001054d0 (patch)
treef0382ce5dc7f7c46623db4bd8c50bc59cd470d46 /daemon/gdm-local-display-factory.c
parent6b417ef59cb03daab6439f3274d31773ea5917f9 (diff)
downloadgdm-2cb9568900adc5fd7f7f5033ae746b91001054d0.tar.gz
display: merge GdmStaticDisplay and GdmTransientDisplay
They basically do the same thing with very minor differences, so merge them into a new GdmLocalDisplay object. https://bugzilla.gnome.org/show_bug.cgi?id=744764
Diffstat (limited to 'daemon/gdm-local-display-factory.c')
-rw-r--r--daemon/gdm-local-display-factory.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 7457fc38..ba7757d5 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -35,8 +35,7 @@
#include "gdm-local-display-factory-glue.h"
#include "gdm-display-store.h"
-#include "gdm-static-display.h"
-#include "gdm-transient-display.h"
+#include "gdm-local-display.h"
#define GDM_LOCAL_DISPLAY_FACTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GDM_TYPE_LOCAL_DISPLAY_FACTORY, GdmLocalDisplayFactoryPrivate))
@@ -235,10 +234,13 @@ gdm_local_display_factory_create_transient_display (GdmLocalDisplayFactory *fact
g_debug ("GdmLocalDisplayFactory: Creating transient display %d", num);
- display = gdm_transient_display_new (num);
+ display = gdm_local_display_new (num);
seat_id = get_seat_of_transient_display (factory);
- g_object_set (display, "seat-id", seat_id, NULL);
+ g_object_set (display,
+ "seat-id", seat_id,
+ "allow-timed-login", FALSE,
+ NULL);
store_display (factory, num, display);
@@ -291,7 +293,7 @@ on_display_status_changed (GdmDisplay *display,
gdm_display_store_remove (store, display);
/* Create a new equivalent display if it was static */
- if (GDM_IS_STATIC_DISPLAY (display)) {
+ if (GDM_IS_LOCAL_DISPLAY (display)) {
/* reset num failures */
factory->priv->num_failures = 0;
@@ -304,7 +306,7 @@ on_display_status_changed (GdmDisplay *display,
gdm_display_store_remove (store, display);
/* Create a new equivalent display if it was static */
- if (GDM_IS_STATIC_DISPLAY (display)) {
+ if (GDM_IS_LOCAL_DISPLAY (display)) {
factory->priv->num_failures++;
@@ -370,7 +372,7 @@ create_display (GdmLocalDisplayFactory *factory,
num = take_next_display_number (factory);
- display = gdm_static_display_new (num);
+ display = gdm_local_display_new (num);
g_object_set (display, "seat-id", seat_id, NULL);
g_object_set (display, "is-initial", initial, NULL);