aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.h
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-04 16:53:25 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-04 17:10:20 +0800
commitf9716e53331ccbd0725a14089ad30e9d6c84a463 (patch)
treeaeab0ca24aa23cdb2e447998af8511cc8d0af770 /src/empathy-preferences.h
parent2e7a0efc837d4b38290dffbd04a1c9d70df64db2 (diff)
downloadgsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.tar
gsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.tar.gz
gsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.tar.bz2
gsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.tar.lz
gsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.tar.xz
gsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.tar.zst
gsoc2013-empathy-f9716e53331ccbd0725a14089ad30e9d6c84a463.zip
Make the #defines an static array
Diffstat (limited to 'src/empathy-preferences.h')
-rw-r--r--src/empathy-preferences.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/empathy-preferences.h b/src/empathy-preferences.h
index daaaecc0b..fef0646d7 100644
--- a/src/empathy-preferences.h
+++ b/src/empathy-preferences.h
@@ -50,6 +50,7 @@ struct _EmpathyPreferencesClass {
GtkDialogClass parent_class;
};
+/* Keep this enum and the array in empathy-preferences.c in sync */
typedef enum
{
EMPATHY_PREFERENCES_TAB_GENERAL,
@@ -61,14 +62,6 @@ typedef enum
EMPATHY_PREFERENCES_TAB_THEMES,
} EmpathyPreferencesTab;
-#define EMPATHY_PREFERENCES_STR_TAB_GENERAL "general"
-#define EMPATHY_PREFERENCES_STR_TAB_NOTIFICATIONS "notifications"
-#define EMPATHY_PREFERENCES_STR_TAB_SOUNDS "sounds"
-#define EMPATHY_PREFERENCES_STR_TAB_CALLS "calls"
-#define EMPATHY_PREFERENCES_STR_TAB_LOCATION "location"
-#define EMPATHY_PREFERENCES_STR_TAB_SPELL "spell"
-#define EMPATHY_PREFERENCES_STR_TAB_THEMES "themes"
-
GType empathy_preferences_get_type (void);
GtkWidget *empathy_preferences_new (GtkWindow *parent);
@@ -76,6 +69,9 @@ GtkWidget *empathy_preferences_new (GtkWindow *parent);
void empathy_preferences_show_tab (EmpathyPreferences *self,
const gchar *tab);
+const gchar *
+empathy_preferences_tab_to_string (EmpathyPreferencesTab tab);
+
G_END_DECLS
#endif /* __EMPATHY_PREFERENCES_H__ */