/*
* 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.
#include "lightdm/language.h"
enum {
- PROP_0,
- PROP_CODE,
+ PROP_CODE = 1,
PROP_NAME,
PROP_TERRITORY
};
/**
* 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 *
/**
* lightdm_language_get_name:
* @language: A #LightDMLanguage
- *
+ *
* Get the name of a language.
*
* Return value: The name of the 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 *
* 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
static void
lightdm_language_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
LightDMLanguage *self = LIGHTDM_LANGUAGE (object);
LightDMLanguagePrivate *priv = GET_PRIVATE (self);
static void
lightdm_language_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
LightDMLanguage *self;
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;