Line data Source code
1 : /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 : /*
3 : * Copyright (C) 2003 Andreas J. Guelzow
4 : *
5 : * based on code by:
6 : * Copyright (C) 2000 Marco Pesenti Gritti
7 : * from the galeon code base
8 : *
9 : * This program is free software; you can redistribute it and/or modify
10 : * it under the terms of the GNU General Public License as published by
11 : * the Free Software Foundation; either version 2, or (at your option)
12 : * any later version.
13 : *
14 : * This program is distributed in the hope that it will be useful,
15 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 : * GNU General Public License for more details.
18 : *
19 : * You should have received a copy of the GNU General Public License
20 : * along with this program; if not, write to the Free Software
21 : * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
22 : */
23 :
24 : #ifndef _GO_CHARMAP_SEL_H_
25 : #define _GO_CHARMAP_SEL_H_
26 :
27 : #include <glib-object.h>
28 : #include <gtk/gtk.h>
29 :
30 : G_BEGIN_DECLS
31 :
32 : #define GO_TYPE_CHARMAP_SEL (go_charmap_sel_get_type ())
33 0 : G_DECLARE_FINAL_TYPE (GOCharmapSel, go_charmap_sel, GO, CHARMAP_SEL, GtkBox);
34 :
35 : typedef enum
36 : {
37 : GO_CHARMAP_SEL_TO_UTF8 = 0,
38 : GO_CHARMAP_SEL_FROM_UTF8
39 : } GOCharmapSelTestDirection;
40 :
41 : GtkWidget * go_charmap_sel_new(GOCharmapSelTestDirection test);
42 :
43 : gchar const *go_charmap_sel_get_encoding(GOCharmapSel *cs);
44 : gboolean go_charmap_sel_set_encoding(GOCharmapSel *cs, const char *enc);
45 :
46 : const char *go_charmap_sel_get_encoding_name(GOCharmapSel *cs, const char *enc);
47 :
48 : G_END_DECLS
49 :
50 : #endif /* _GO_CHARMAP_SEL_H_ */
|