Updated Hungarian translation
[evolution.git] / e-util / e-preferences-window.h
blobc5659fc0439de308ca2fd6ddc706f2784235ef66
1 /*
2 * e-preferences-window.h
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
22 #error "Only <e-util/e-util.h> should be included directly."
23 #endif
25 #ifndef E_PREFERENCES_WINDOW_H
26 #define E_PREFERENCES_WINDOW_H
28 #include <gtk/gtk.h>
30 /* Standard GObject macros */
31 #define E_TYPE_PREFERENCES_WINDOW \
32 (e_preferences_window_get_type ())
33 #define E_PREFERENCES_WINDOW(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST \
35 ((obj), E_TYPE_PREFERENCES_WINDOW, EPreferencesWindow))
36 #define E_PREFERENCES_WINDOW_CLASS(cls) \
37 (G_TYPE_CHECK_CLASS_CAST \
38 ((cls), E_TYPE_PREFERENCES_WINDOW, EPreferencesWindowClass))
39 #define E_IS_PREFERENCES_WINDOW(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE \
41 ((obj), E_TYPE_PREFERENCES_WINDOW))
42 #define E_IS_PREFERENCES_WINDOW_CLASS(cls) \
43 (G_TYPE_CHECK_CLASS_TYPE \
44 ((obj), E_TYPE_PREFERENCES_WINDOW))
45 #define E_PREFERENCES_WINDOW_GET_CLASS(obj) \
46 (G_TYPE_INSTANCE_GET_TYPE \
47 ((obj), E_TYPE_PREFERENCES_WINDOW, EPreferencesWindowClass))
49 G_BEGIN_DECLS
51 typedef struct _EPreferencesWindow EPreferencesWindow;
52 typedef struct _EPreferencesWindowClass EPreferencesWindowClass;
53 typedef struct _EPreferencesWindowPrivate EPreferencesWindowPrivate;
55 struct _EPreferencesWindow {
56 GtkWindow parent;
57 EPreferencesWindowPrivate *priv;
60 struct _EPreferencesWindowClass {
61 GtkWindowClass parent_class;
64 typedef GtkWidget *
65 (*EPreferencesWindowCreatePageFn)
66 (EPreferencesWindow *window);
68 GType e_preferences_window_get_type (void) G_GNUC_CONST;
69 GtkWidget * e_preferences_window_new (gpointer shell);
70 gpointer e_preferences_window_get_shell (EPreferencesWindow *window);
71 void e_preferences_window_setup (EPreferencesWindow *window);
72 void e_preferences_window_add_page (EPreferencesWindow *window,
73 const gchar *page_name,
74 const gchar *icon_name,
75 const gchar *caption,
76 const gchar *help_target,
77 EPreferencesWindowCreatePageFn create_fn,
78 gint sort_order);
79 void e_preferences_window_show_page (EPreferencesWindow *window,
80 const gchar *page_name);
82 G_END_DECLS
84 #endif /* E_PREFERENCES_WINDOW_H */