]> git.0d.be Git - empathy.git/blob - src/empathy-preferences.h
Updated Swedish translation
[empathy.git] / src / empathy-preferences.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2003-2007 Imendio AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA  02110-1301  USA
19  *
20  * Authors: Mikael Hallendal <micke@imendio.com>
21  *          Richard Hult <richard@imendio.com>
22  *          Martyn Russell <martyn@imendio.com>
23  *          Danielle Madeley <danielle.madeley@collabora.co.uk>
24  */
25
26 #ifndef __EMPATHY_PREFERENCES_H__
27 #define __EMPATHY_PREFERENCES_H__
28
29 #include <gtk/gtk.h>
30
31 G_BEGIN_DECLS
32
33 #define EMPATHY_TYPE_PREFERENCES         (empathy_preferences_get_type ())
34 #define EMPATHY_PREFERENCES(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_PREFERENCES, EmpathyPreferences))
35 #define EMPATHY_PREFERENCES_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_PREFERENCES, EmpathyPreferencesClass))
36 #define EMPATHY_IS_PREFERENCES(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_PREFERENCES))
37 #define EMPATHY_IS_PREFERENCES_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_PREFERENCES))
38 #define EMPATHY_PREFERENCES_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_PREFERENCES, EmpathyPreferencesClass))
39
40 typedef struct _EmpathyPreferences EmpathyPreferences;
41 typedef struct _EmpathyPreferencesClass EmpathyPreferencesClass;
42 typedef struct _EmpathyPreferencesPriv EmpathyPreferencesPriv;
43
44 struct _EmpathyPreferences {
45         GtkDialog parent;
46         gpointer priv;
47 };
48
49 struct _EmpathyPreferencesClass {
50         GtkDialogClass parent_class;
51 };
52
53 /* Keep this enum and the array in empathy-preferences.c in sync */
54 typedef enum
55 {
56   EMPATHY_PREFERENCES_TAB_GENERAL,
57   EMPATHY_PREFERENCES_TAB_NOTIFICATIONS,
58   EMPATHY_PREFERENCES_TAB_SOUNDS,
59   EMPATHY_PREFERENCES_TAB_CALLS,
60   EMPATHY_PREFERENCES_TAB_LOCATION,
61   EMPATHY_PREFERENCES_TAB_SPELL,
62   EMPATHY_PREFERENCES_TAB_THEMES,
63 } EmpathyPreferencesTab;
64
65 GType empathy_preferences_get_type (void);
66
67 GtkWidget *empathy_preferences_new (GtkWindow *parent,
68                                     gboolean  shell_running);
69
70 void empathy_preferences_show_tab (EmpathyPreferences *self,
71     const gchar *tab);
72
73 const gchar *
74 empathy_preferences_tab_to_string (EmpathyPreferencesTab tab);
75
76 G_END_DECLS
77
78 #endif /* __EMPATHY_PREFERENCES_H__ */