diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2014-09-19 15:16:14 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2014-09-19 15:16:14 +1200 |
commit | 444f30cd26fdccb176f0c0a2d0461ab46d19369c (patch) | |
tree | 58572138d2b9d0dd2bb4c5e8c9de5ec0e42b1d96 /liblightdm-gobject | |
parent | aaef3c1e092bc6ece2a45d07ea398c871760275f (diff) | |
download | lightdm-444f30cd26fdccb176f0c0a2d0461ab46d19369c.tar.gz |
Remove trailing whitespace
Diffstat (limited to 'liblightdm-gobject')
-rw-r--r-- | liblightdm-gobject/greeter.c | 12 | ||||
-rw-r--r-- | liblightdm-gobject/language.c | 18 | ||||
-rw-r--r-- | liblightdm-gobject/layout.c | 16 | ||||
-rw-r--r-- | liblightdm-gobject/power.c | 2 | ||||
-rw-r--r-- | liblightdm-gobject/session.c | 30 | ||||
-rw-r--r-- | liblightdm-gobject/user.c | 52 |
6 files changed, 65 insertions, 65 deletions
diff --git a/liblightdm-gobject/greeter.c b/liblightdm-gobject/greeter.c index e444dbf8..8214490c 100644 --- a/liblightdm-gobject/greeter.c +++ b/liblightdm-gobject/greeter.c @@ -374,7 +374,7 @@ handle_connected (LightDMGreeter *greeter, guint8 *message, gsize message_length while (*offset < message_length) { gchar *name, *value; - + name = read_string (message, message_length, offset); value = read_string (message, message_length, offset); g_hash_table_insert (priv->hints, name, value); @@ -876,7 +876,7 @@ lightdm_greeter_get_default_session_hint (LightDMGreeter *greeter) * accounts should be taken from #LightDMUserList and displayed in the greeter * for the user to choose from. Note that this list can be empty and it is * recommended you show a method for the user to enter a username manually. - * + * * If this option is shown the greeter should only allow these users to be * chosen for login unless the manual login hint is set. * @@ -969,7 +969,7 @@ lightdm_greeter_get_has_guest_account_hint (LightDMGreeter *greeter) g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "has-guest-account"); - + return g_strcmp0 (value, "true") == 0; } @@ -1003,7 +1003,7 @@ lightdm_greeter_get_select_guest_hint (LightDMGreeter *greeter) g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "select-guest"); - + return g_strcmp0 (value, "true") == 0; } @@ -1037,7 +1037,7 @@ lightdm_greeter_get_autologin_guest_hint (LightDMGreeter *greeter) g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "autologin-guest"); - + return g_strcmp0 (value, "true") == 0; } @@ -1107,7 +1107,7 @@ lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username) priv->cancelling_authentication = FALSE; priv->authenticate_sequence_number++; - priv->in_authentication = TRUE; + priv->in_authentication = TRUE; priv->is_authenticated = FALSE; if (username != priv->authentication_user) { diff --git a/liblightdm-gobject/language.c b/liblightdm-gobject/language.c index 4dce374a..91a46429 100644 --- a/liblightdm-gobject/language.c +++ b/liblightdm-gobject/language.c @@ -1,7 +1,7 @@ /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell <robert.ancell@canonical.com> - * + * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. @@ -193,9 +193,9 @@ lightdm_get_languages (void) /** * lightdm_language_get_code: * @language: A #LightDMLanguage - * + * * Get the code of a language (e.g. "de_DE.UTF-8") - * + * * Return value: The code of the language **/ const gchar * @@ -208,7 +208,7 @@ lightdm_language_get_code (LightDMLanguage *language) /** * lightdm_language_get_name: * @language: A #LightDMLanguage - * + * * Get the name of a language. * * Return value: The name of the language @@ -251,9 +251,9 @@ lightdm_language_get_name (LightDMLanguage *language) /** * lightdm_language_get_territory: * @language: A #LightDMLanguage - * + * * Get the territory the language is used in. - * + * * Return value: The territory the language is used in. **/ const gchar * @@ -295,9 +295,9 @@ lightdm_language_get_territory (LightDMLanguage *language) * lightdm_language_matches: * @language: A #LightDMLanguage * @code: A language code - * + * * Check if a language code matches this language. - * + * * Return value: #TRUE if the code matches this language. **/ gboolean @@ -377,7 +377,7 @@ static void lightdm_language_class_init (LightDMLanguageClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - + g_type_class_add_private (klass, sizeof (LightDMLanguagePrivate)); object_class->set_property = lightdm_language_set_property; diff --git a/liblightdm-gobject/layout.c b/liblightdm-gobject/layout.c index c0426e35..ccb582f5 100644 --- a/liblightdm-gobject/layout.c +++ b/liblightdm-gobject/layout.c @@ -2,7 +2,7 @@ * * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell <robert.ancell@canonical.com> - * + * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. @@ -117,7 +117,7 @@ lightdm_get_layouts (void) display = XOpenDisplay (NULL); if (display == NULL) return NULL; - + xkl_engine = xkl_engine_get_instance (display); xkl_config = xkl_config_rec_new (); if (!xkl_config_rec_get_from_server (xkl_config, xkl_engine)) @@ -203,9 +203,9 @@ lightdm_get_layout (void) /** * lightdm_layout_get_name: * @layout: A #LightDMLayout - * + * * Get the name of a layout. - * + * * Return value: The name of the layout **/ const gchar * @@ -218,7 +218,7 @@ lightdm_layout_get_name (LightDMLayout *layout) /** * lightdm_layout_get_short_description: * @layout: A #LightDMLayout - * + * * Get the short description of a layout. * * Return value: A short description of the layout @@ -233,9 +233,9 @@ lightdm_layout_get_short_description (LightDMLayout *layout) /** * lightdm_layout_get_description: * @layout: A #LightDMLayout - * + * * Get the long description of a layout. - * + * * Return value: A long description of the layout **/ const gchar * @@ -308,7 +308,7 @@ static void lightdm_layout_class_init (LightDMLayoutClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - + g_type_class_add_private (klass, sizeof (LightDMLayoutPrivate)); object_class->set_property = lightdm_layout_set_property; diff --git a/liblightdm-gobject/power.c b/liblightdm-gobject/power.c index b46af0f8..9b2dc172 100644 --- a/liblightdm-gobject/power.c +++ b/liblightdm-gobject/power.c @@ -337,7 +337,7 @@ lightdm_get_can_shutdown (void) * @error: return location for a #GError, or %NULL * * Triggers a system shutdown. - * + * * Return value: #TRUE if shutdown initiated. **/ gboolean diff --git a/liblightdm-gobject/session.c b/liblightdm-gobject/session.c index 2a0be544..d635f330 100644 --- a/liblightdm-gobject/session.c +++ b/liblightdm-gobject/session.c @@ -1,7 +1,7 @@ /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell <robert.ancell@canonical.com> - * + * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. @@ -37,7 +37,7 @@ static gboolean have_sessions = FALSE; static GList *local_sessions = NULL; static GList *remote_sessions = NULL; -static gint +static gint compare_session (gconstpointer a, gconstpointer b) { LightDMSessionPrivate *priv_a = GET_PRIVATE (a); @@ -52,7 +52,7 @@ load_session (GKeyFile *key_file, const gchar *key) LightDMSession *session; LightDMSessionPrivate *priv; gchar *try_exec; - + if (g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, NULL) || g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_HIDDEN, NULL)) return NULL; @@ -170,7 +170,7 @@ load_sessions_dir (GList *sessions, const gchar *sessions_dir) } g_dir_close (directory); - + return sessions; } @@ -185,7 +185,7 @@ load_sessions (const gchar *sessions_dir) for (i = 0; dirs[i]; i++) sessions = load_sessions_dir (sessions, dirs[i]); g_strfreev (dirs); - + return sessions; } @@ -204,7 +204,7 @@ update_sessions (void) /* Use session directory from configuration */ config_load_from_standard_locations (config_get_instance (), NULL, NULL); - + value = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); if (value) { @@ -259,9 +259,9 @@ lightdm_get_remote_sessions (void) /** * lightdm_session_get_key: * @session: A #LightDMSession - * + * * Get the key for a session - * + * * Return value: The session key **/ const gchar * @@ -274,9 +274,9 @@ lightdm_session_get_key (LightDMSession *session) /** * lightdm_session_get_session_type: * @session: A #LightDMSession - * + * * Get the type a session - * + * * Return value: The session type, e.g. x or mir **/ const gchar * @@ -289,9 +289,9 @@ lightdm_session_get_session_type (LightDMSession *session) /** * lightdm_session_get_name: * @session: A #LightDMSession - * + * * Get the name for a session - * + * * Return value: The session name **/ const gchar * @@ -304,9 +304,9 @@ lightdm_session_get_name (LightDMSession *session) /** * lightdm_session_get_comment: * @session: A #LightDMSession - * + * * Get the comment for a session - * + * * Return value: The session comment **/ const gchar * @@ -372,7 +372,7 @@ static void lightdm_session_class_init (LightDMSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - + g_type_class_add_private (klass, sizeof (LightDMSessionPrivate)); object_class->set_property = lightdm_session_set_property; diff --git a/liblightdm-gobject/user.c b/liblightdm-gobject/user.c index 50f766b0..c4e5661e 100644 --- a/liblightdm-gobject/user.c +++ b/liblightdm-gobject/user.c @@ -4,7 +4,7 @@ * Copyright (C) 2014 Canonical, Ltd. * Authors: Robert Ancell <robert.ancell@canonical.com> * Michael Terry <michael.terry@canonical.com> - * + * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. @@ -350,9 +350,9 @@ lightdm_user_list_class_init (LightDMUserListClass *klass) /** * lightdm_user_get_name: * @user: A #LightDMUser - * + * * Get the name of a user. - * + * * Return value: The name of the given user **/ const gchar * @@ -365,7 +365,7 @@ lightdm_user_get_name (LightDMUser *user) /** * lightdm_user_get_real_name: * @user: A #LightDMUser - * + * * Get the real name of a user. * * Return value: The real name of the given user @@ -380,9 +380,9 @@ lightdm_user_get_real_name (LightDMUser *user) /** * lightdm_user_get_display_name: * @user: A #LightDMUser - * + * * Get the display name of a user. - * + * * Return value: The display name of the given user **/ const gchar * @@ -395,9 +395,9 @@ lightdm_user_get_display_name (LightDMUser *user) /** * lightdm_user_get_home_directory: * @user: A #LightDMUser - * + * * Get the home directory for a user. - * + * * Return value: The users home directory */ const gchar * @@ -410,9 +410,9 @@ lightdm_user_get_home_directory (LightDMUser *user) /** * lightdm_user_get_image: * @user: A #LightDMUser - * + * * Get the image URI for a user. - * + * * Return value: The image URI for the given user or #NULL if no URI **/ const gchar * @@ -425,9 +425,9 @@ lightdm_user_get_image (LightDMUser *user) /** * lightdm_user_get_background: * @user: A #LightDMUser - * + * * Get the background file path for a user. - * + * * Return value: The background file path for the given user or #NULL if no path **/ const gchar * @@ -440,9 +440,9 @@ lightdm_user_get_background (LightDMUser *user) /** * lightdm_user_get_language: * @user: A #LightDMUser - * + * * Get the language for a user. - * + * * Return value: The language in the form of a local specification (e.g. "de_DE.UTF-8") for the given user or #NULL if using the system default locale. **/ const gchar * @@ -455,9 +455,9 @@ lightdm_user_get_language (LightDMUser *user) /** * lightdm_user_get_layout: * @user: A #LightDMUser - * + * * Get the keyboard layout for a user. - * + * * Return value: The keyboard layout for the given user or #NULL if using system defaults. Copy the value if you want to use it long term. **/ const gchar * @@ -470,9 +470,9 @@ lightdm_user_get_layout (LightDMUser *user) /** * lightdm_user_get_layouts: * @user: A #LightDMUser - * + * * Get the configured keyboard layouts for a user. - * + * * Return value: (transfer none): A NULL-terminated array of keyboard layouts for the given user. Copy the values if you want to use them long term. **/ const gchar * const * @@ -485,9 +485,9 @@ lightdm_user_get_layouts (LightDMUser *user) /** * lightdm_user_get_session: * @user: A #LightDMUser - * + * * Get the session for a user. - * + * * Return value: The session for the given user or #NULL if using system defaults. **/ const gchar * @@ -500,9 +500,9 @@ lightdm_user_get_session (LightDMUser *user) /** * lightdm_user_get_logged_in: * @user: A #LightDMUser - * + * * Check if a user is logged in. - * + * * Return value: #TRUE if the user is currently logged in. **/ gboolean @@ -515,9 +515,9 @@ lightdm_user_get_logged_in (LightDMUser *user) /** * lightdm_user_get_has_messages: * @user: A #LightDMUser - * + * * Check if a user has waiting messages. - * + * * Return value: #TRUE if the user has waiting messages. **/ gboolean @@ -530,9 +530,9 @@ lightdm_user_get_has_messages (LightDMUser *user) /** * lightdm_user_get_uid: * @user: A #LightDMUser - * + * * Get the uid of a user. - * + * * Return value: The uid of the given user **/ uid_t |