diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-07-12 17:16:55 +1000 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-07-12 17:16:55 +1000 |
commit | 4dc994cc56cb5980f6d6d3711c93b06480d7aac8 (patch) | |
tree | 2138f76434be542acb281bc646ec7acae383d84a /liblightdm-gobject | |
parent | e20b86837a8a344bcee56bb130e065ac533e1920 (diff) | |
download | lightdm-4dc994cc56cb5980f6d6d3711c93b06480d7aac8.tar.gz |
Remove complex use of const, fix annotations on list ownership
Diffstat (limited to 'liblightdm-gobject')
-rw-r--r-- | liblightdm-gobject/greeter.c | 16 | ||||
-rw-r--r-- | liblightdm-gobject/lightdm/greeter.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/liblightdm-gobject/greeter.c b/liblightdm-gobject/greeter.c index 6460f3b2..c5789c96 100644 --- a/liblightdm-gobject/greeter.c +++ b/liblightdm-gobject/greeter.c @@ -870,9 +870,9 @@ ldm_greeter_get_num_users (LdmGreeter *greeter) * Get a list of users to present to the user. This list may be a subset of the * available users and may be empty depending on the server configuration. * - * Return value: (element-type LdmUser) (transfer container): A list of #LdmUser that should be presented to the user. + * Return value: (element-type LdmUser) (transfer none): A list of #LdmUser that should be presented to the user. **/ -const GList * +GList * ldm_greeter_get_users (LdmGreeter *greeter) { g_return_val_if_fail (LDM_IS_GREETER (greeter), NULL); @@ -973,9 +973,9 @@ ldm_greeter_get_default_language (LdmGreeter *greeter) * * Get a list of languages to present to the user. * - * Return value: (element-type LdmLanguage): A list of #LdmLanguage that should be presented to the user. + * Return value: (element-type LdmLanguage) (transfer none): A list of #LdmLanguage that should be presented to the user. **/ -const GList * +GList * ldm_greeter_get_languages (LdmGreeter *greeter) { g_return_val_if_fail (LDM_IS_GREETER (greeter), NULL); @@ -1019,9 +1019,9 @@ setup_xkl (LdmGreeter *greeter) * * Get a list of keyboard layouts to present to the user. * - * Return value: (element-type LdmLayout): A list of #LdmLayout that should be presented to the user. + * Return value: (element-type LdmLayout) (transfer none): A list of #LdmLayout that should be presented to the user. **/ -const GList * +GList * ldm_greeter_get_layouts (LdmGreeter *greeter) { XklConfigRegistry *registry; @@ -1171,9 +1171,9 @@ update_sessions (LdmGreeter *greeter) * * Get the available sessions. * - * Return value: (element-type LdmSession): A list of #LdmSession + * Return value: (element-type LdmSession) (transfer none): A list of #LdmSession **/ -const GList * +GList * ldm_greeter_get_sessions (LdmGreeter *greeter) { g_return_val_if_fail (LDM_IS_GREETER (greeter), NULL); diff --git a/liblightdm-gobject/lightdm/greeter.h b/liblightdm-gobject/lightdm/greeter.h index 3461ea06..b5dd4bb4 100644 --- a/liblightdm-gobject/lightdm/greeter.h +++ b/liblightdm-gobject/lightdm/greeter.h @@ -73,21 +73,21 @@ gboolean ldm_greeter_get_boolean_property (LdmGreeter *greeter, const gchar *nam gint ldm_greeter_get_num_users (LdmGreeter *greeter); -const GList *ldm_greeter_get_users (LdmGreeter *greeter); +GList *ldm_greeter_get_users (LdmGreeter *greeter); LdmUser *ldm_greeter_get_user_by_name (LdmGreeter *greeter, const gchar *username); const gchar *ldm_greeter_get_default_language (LdmGreeter *greeter); -const GList *ldm_greeter_get_languages (LdmGreeter *greeter); +GList *ldm_greeter_get_languages (LdmGreeter *greeter); -const GList *ldm_greeter_get_layouts (LdmGreeter *greeter); +GList *ldm_greeter_get_layouts (LdmGreeter *greeter); void ldm_greeter_set_layout (LdmGreeter *greeter, const gchar *layout); const gchar *ldm_greeter_get_layout (LdmGreeter *greeter); -const GList *ldm_greeter_get_sessions (LdmGreeter *greeter); +GList *ldm_greeter_get_sessions (LdmGreeter *greeter); const gchar *ldm_greeter_get_default_session (LdmGreeter *greeter); |