~ubuntu-branches/ubuntu/wily/epiphany-browser/wily

« back to all changes in this revision

Viewing changes to embed/ephy-encodings.h

  • Committer: Package Import Robot
  • Author(s): Gustavo Noronha Silva, Jeremy Bicha, Emilio Pozuelo Monfort, Gustavo Noronha Silva
  • Date: 2012-12-10 11:40:01 UTC
  • mfrom: (1.8.8) (105.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20121210114001-42jjyg3qw3eyz00a
Tags: 3.6.1-1
[ Jeremy Bicha ]
* New upstream unstable release
* debian/control.in:
  - Bump minimum intltool to 0.50
* debian/epiphany-browser-data.install:
  - The developers no longer provide help files to install since they were
    too outdated
* Dropped upstream patches:
  - 01_email-as-user-for-password-remembering.patch
  - 13_toolbar_size_fixes.patch
* debian/watch: Watch for unstable releases.

[ Emilio Pozuelo Monfort ]
* New upstream release.
  + debian/patches/14_pkglibdir.patch:
    - Removed, applied upstream.
  + debian/control.in:
    - Update (build-)dependencies.

[ Gustavo Noronha Silva ]
* debian/control.in:
- Build-Depend on gnome-common >= 3.6, needed for the code
  coverage feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
1
2
/*
2
3
 *  Copyright © 2003, 2004 Christian Persch
 
4
 *  Copyright © 2012 Igalia S.L.
3
5
 *  
4
6
 *  This program is free software; you can redistribute it and/or modify
5
7
 *  it under the terms of the GNU General Public License as published by
27
29
#include <glib-object.h>
28
30
#include <glib.h>
29
31
 
30
 
#include "ephy-node.h"
 
32
#include "ephy-encoding.h"
31
33
 
32
34
G_BEGIN_DECLS
33
35
 
34
 
#define EPHY_TYPE_ENCODINGS             (ephy_encodings_get_type ())
35
 
#define EPHY_ENCODINGS(o)               (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_ENCODINGS, EphyEncodings))
36
 
#define EPHY_ENCODINGS_CLASS(k)         (G_TYPE_CHECK_CLASS_CAST ((k), EPHY_TYPE_ENCODINGS, EphyEncodingsClass))
37
 
#define EPHY_IS_ENCODINGS(o)            (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_ENCODINGS))
38
 
#define EPHY_IS_ENCODINGS_CLASS(k)      (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_ENCODINGS))
39
 
#define EPHY_ENCODINGS_GET_CLASS(o)     (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_ENCODINGS, EphyEncodingsClass))
40
 
 
41
 
typedef struct _EphyEncodings           EphyEncodings;
42
 
typedef struct _EphyEncodingsPrivate    EphyEncodingsPrivate;
43
 
typedef struct _EphyEncodingsClass      EphyEncodingsClass;
44
 
 
45
 
typedef enum
46
 
{
47
 
        LG_NONE                 = 0,
48
 
        LG_ARABIC               = 1 << 0,
49
 
        LG_BALTIC               = 1 << 1,
50
 
        LG_CAUCASIAN            = 1 << 2,
51
 
        LG_C_EUROPEAN           = 1 << 3,
52
 
        LG_CHINESE_TRAD         = 1 << 4,
53
 
        LG_CHINESE_SIMP         = 1 << 5,
54
 
        LG_CYRILLIC             = 1 << 6,
55
 
        LG_GREEK                = 1 << 7,
56
 
        LG_HEBREW               = 1 << 8,
57
 
        LG_INDIAN               = 1 << 9,
58
 
        LG_JAPANESE             = 1 << 10,
59
 
        LG_KOREAN               = 1 << 12,
60
 
        LG_NORDIC               = 1 << 13,
61
 
        LG_PERSIAN              = 1 << 14,
62
 
        LG_SE_EUROPEAN          = 1 << 15,
63
 
        LG_THAI                 = 1 << 16,
64
 
        LG_TURKISH              = 1 << 17,
65
 
        LG_UKRAINIAN            = 1 << 18,
66
 
        LG_UNICODE              = 1 << 19,
67
 
        LG_VIETNAMESE           = 1 << 20,
68
 
        LG_WESTERN              = 1 << 21,
69
 
        LG_ALL                  = 0x3fffff,
70
 
}
71
 
EphyLanguageGroup;
72
 
 
73
 
enum
74
 
{
75
 
        EPHY_NODE_ENCODING_PROP_TITLE = 1,
76
 
        EPHY_NODE_ENCODING_PROP_TITLE_ELIDED = 2,
77
 
        EPHY_NODE_ENCODING_PROP_COLLATION_KEY = 3,
78
 
        EPHY_NODE_ENCODING_PROP_ENCODING = 4,
79
 
        EPHY_NODE_ENCODING_PROP_LANGUAGE_GROUPS = 5,
80
 
};
 
36
#define EPHY_TYPE_ENCODINGS         (ephy_encodings_get_type ())
 
37
#define EPHY_ENCODINGS(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_ENCODINGS, EphyEncodings))
 
38
#define EPHY_ENCODINGS_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), EPHY_TYPE_ENCODINGS, EphyEncodingsClass))
 
39
#define EPHY_IS_ENCODINGS(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_ENCODINGS))
 
40
#define EPHY_IS_ENCODINGS_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_ENCODINGS))
 
41
#define EPHY_ENCODINGS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_ENCODINGS, EphyEncodingsClass))
 
42
 
 
43
typedef struct _EphyEncodings        EphyEncodings;
 
44
typedef struct _EphyEncodingsPrivate EphyEncodingsPrivate;
 
45
typedef struct _EphyEncodingsClass   EphyEncodingsClass;
81
46
 
82
47
struct _EphyEncodings
83
48
{
84
 
        GObject parent;
 
49
  GObject parent;
85
50
 
86
 
        /*< private >*/
87
 
        EphyEncodingsPrivate *priv;
 
51
  /*< private >*/
 
52
  EphyEncodingsPrivate *priv;
88
53
};
89
54
 
90
55
struct _EphyEncodingsClass
91
56
{
92
 
        GObjectClass parent_class;
 
57
  GObjectClass parent_class;
93
58
};
94
59
 
95
 
GType            ephy_encodings_get_type        (void);
96
 
 
97
 
EphyEncodings   *ephy_encodings_new             (void);
98
 
 
99
 
EphyNode        *ephy_encodings_get_node        (EphyEncodings *encodings,
100
 
                                                 const char *code,
101
 
                                                 gboolean add_if_not_found);
102
 
 
103
 
GList           *ephy_encodings_get_encodings   (EphyEncodings *encodings,
104
 
                                                 EphyLanguageGroup group_mask);
105
 
 
106
 
EphyNode        *ephy_encodings_get_all         (EphyEncodings *encodings);
107
 
 
108
 
void             ephy_encodings_add_recent      (EphyEncodings *encodings,
109
 
                                                 const char *code);
110
 
 
111
 
GList           *ephy_encodings_get_recent      (EphyEncodings *encodings);
 
60
GType          ephy_encodings_get_type      (void);
 
61
EphyEncodings *ephy_encodings_new           (void);
 
62
EphyEncoding  *ephy_encodings_get_encoding  (EphyEncodings     *encodings,
 
63
                                             const char        *code,
 
64
                                             gboolean           add_if_not_found);
 
65
GList         *ephy_encodings_get_encodings (EphyEncodings     *encodings,
 
66
                                             EphyLanguageGroup  group_mask);
 
67
GList         *ephy_encodings_get_all       (EphyEncodings     *encodings);
 
68
void           ephy_encodings_add_recent    (EphyEncodings     *encodings,
 
69
                                             const char        *code);
 
70
GList         *ephy_encodings_get_recent    (EphyEncodings     *encodings);
112
71
 
113
72
G_END_DECLS
114
73