diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-10-01 14:58:44 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-10-01 14:58:44 +1300 |
commit | fc453d31ff0e28d7d79c2ede34581758b231ae55 (patch) | |
tree | 8dbb3ce616c3cded6618b2b21daa3781247329fe /liblightdm-gobject/greeter.c | |
parent | 70c0f3a6740586d304120ccd55e430a50d9ac136 (diff) | |
parent | a420130af184b73c2261a15491c89bcb13bbc4aa (diff) | |
download | lightdm-fc453d31ff0e28d7d79c2ede34581758b231ae55.tar.gz |
Add greeter-show-remote-login hint
Diffstat (limited to 'liblightdm-gobject/greeter.c')
-rw-r--r-- | liblightdm-gobject/greeter.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/liblightdm-gobject/greeter.c b/liblightdm-gobject/greeter.c index bfd887a9..0cde5371 100644 --- a/liblightdm-gobject/greeter.c +++ b/liblightdm-gobject/greeter.c @@ -22,6 +22,7 @@ enum { PROP_DEFAULT_SESSION_HINT, PROP_HIDE_USERS_HINT, PROP_SHOW_MANUAL_LOGIN_HINT, + PROP_SHOW_REMOTE_LOGIN_HINT, PROP_LOCK_HINT, PROP_HAS_GUEST_ACCOUNT_HINT, PROP_SELECT_USER_HINT, @@ -614,6 +615,26 @@ lightdm_greeter_get_show_manual_login_hint (LightDMGreeter *greeter) } /** + * lightdm_greeter_get_show_remote_login_hint: + * @greeter: A #LightDMGreeter + * + * Check if a remote login option should be shown. If set the GUI + * should provide a way for a user to log into a remote desktop server. + * + * Return value: #TRUE if a remote login option should be shown. + */ +gboolean +lightdm_greeter_get_show_remote_login_hint (LightDMGreeter *greeter) +{ + const gchar *value; + + g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); + value = lightdm_greeter_get_hint (greeter, "show-remote-login"); + + return g_strcmp0 (value, "true") == 0; +} + +/** * lightdm_greeter_get_lock_hint: * @greeter: A #LightDMGreeter * @@ -1124,6 +1145,9 @@ lightdm_greeter_get_property (GObject *object, case PROP_SHOW_MANUAL_LOGIN_HINT: g_value_set_boolean (value, lightdm_greeter_get_show_manual_login_hint (self)); break; + case PROP_SHOW_REMOTE_LOGIN_HINT: + g_value_set_boolean (value, lightdm_greeter_get_show_remote_login_hint (self)); + break; case PROP_LOCK_HINT: g_value_set_boolean (value, lightdm_greeter_get_lock_hint (self)); break; @@ -1248,6 +1272,14 @@ lightdm_greeter_class_init (LightDMGreeterClass *klass) G_PARAM_READABLE)); g_object_class_install_property (object_class, + PROP_SHOW_REMOTE_LOGIN_HINT, + g_param_spec_boolean ("show-remote-login-hint", + "show-remote-login-hint", + "Show remote login hint", + FALSE, + G_PARAM_READABLE)); + + g_object_class_install_property (object_class, PROP_LOCK_HINT, g_param_spec_boolean ("lock-hint", "lock-hint", |