~lightdm-team/lightdm/1.4

109 by robert.ancell at gmail
Add language information
1
/*
2
 * Copyright (C) 2010 Robert Ancell.
3
 * Author: Robert Ancell <robert.ancell@canonical.com>
4
 * 
190 by robert.ancell at gmail
Change libldmgreeter library from GPL to LGPL
5
 * This library is free software; you can redistribute it and/or modify it under
6
 * the terms of the GNU Lesser General Public License as published by the Free
7
 * Software Foundation; either version 3 of the License, or (at your option) any
8
 * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
109 by robert.ancell at gmail
Add language information
9
 * license.
10
 */
11
12
#ifndef _LDM_LANGUAGE_H_
13
#define _LDM_LANGUAGE_H_
14
15
#include <glib-object.h>
16
17
G_BEGIN_DECLS
18
19
#define LDM_TYPE_LANGUAGE            (ldm_language_get_type())
20
#define LDM_LANGUAGE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), LDM_TYPE_LANGUAGE, LdmLanguage));
21
#define LDM_LANGUAGE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), LDM_TYPE_LANGUAGE, LdmLanguageClass))
22
#define LDM_IS_LANGUAGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LDM_TYPE_LANGUAGE))
23
#define LDM_IS_LANGUAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LDM_TYPE_LANGUAGE))
24
#define LDM_LANGUAGE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), LDM_TYPE_LANGUAGE, LdmLanguageClass))
25
26
typedef struct _LdmLanguage        LdmLanguage;
27
typedef struct _LdmLanguageClass   LdmLanguageClass;
28
typedef struct _LdmLanguagePrivate LdmLanguagePrivate;
29
30
struct _LdmLanguage
31
{
32
    GObject         parent_instance;
33
    LdmLanguagePrivate *priv;
34
};
35
36
struct _LdmLanguageClass
37
{
38
    GObjectClass parent_class;
39
};
40
41
GType ldm_language_get_type (void);
42
43
LdmLanguage *ldm_language_new (const gchar *code);
44
45
const gchar *ldm_language_get_code (LdmLanguage *language);
46
47
const gchar *ldm_language_get_name (LdmLanguage *language);
48
49
const gchar *ldm_language_get_territory (LdmLanguage *language);
50
345 by robert.ancell at canonical
Correctly pass LANG and LANGUAGE through to the session
51
gboolean ldm_language_matches (LdmLanguage *language, const gchar *code);
52
109 by robert.ancell at gmail
Add language information
53
G_END_DECLS
54
55
#endif /* _LDM_LANGUAGE_H_ */