summaryrefslogtreecommitdiff
path: root/src/prefs.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-12-09 22:41:12 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-12-09 22:41:12 +0000
commit6981a8198bdce947fa2f43a28babe427e740282b (patch)
treee247cdeeb2810c60ea00e7620e903fd82eca7668 /src/prefs.h
parentb3778e4470e08dab6017d0134c81607920110e74 (diff)
downloadmetacity-6981a8198bdce947fa2f43a28babe427e740282b.tar.gz
move SM init a bit later in the process, and init prefs
2001-12-09 Havoc Pennington <hp@pobox.com> * src/main.c (main): move SM init a bit later in the process, and init prefs * src/session.c: fix no SM case (though I hardly know why I'm bothering) * src/main.c (main): call bindtextdomain * src/util.h (_): actually call gettext * configure.in: put in AM_GLIB_GNU_GETTEXT and gconf stuff * src/prefs.c: Preferences - this marks the beginning of our doom. None of them are actually implemented yet, but we monitor some stuff from gconf.
Diffstat (limited to 'src/prefs.h')
-rw-r--r--src/prefs.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/prefs.h b/src/prefs.h
new file mode 100644
index 00000000..3b45a615
--- /dev/null
+++ b/src/prefs.h
@@ -0,0 +1,58 @@
+/* Metacity preferences */
+
+/*
+ * Copyright (C) 2001 Havoc Pennington
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef META_PREFS_H
+#define META_PREFS_H
+
+/* This header is a "common" one between the UI and core side */
+#include "common.h"
+#include <pango/pango-font.h>
+
+typedef enum
+{
+ META_PREF_FOCUS_MODE,
+ META_PREF_TITLEBAR_FONT,
+ META_PREF_TITLEBAR_FONT_SIZE
+
+} MetaPreference;
+
+typedef void (* MetaPrefsChangedFunc) (MetaPreference pref,
+ gpointer data);
+
+void meta_prefs_add_listener (MetaPrefsChangedFunc func,
+ gpointer data);
+void meta_prefs_remove_listener (MetaPrefsChangedFunc func,
+ gpointer data);
+
+void meta_prefs_init (void);
+const char* meta_preference_to_string (MetaPreference pref);
+
+MetaFocusMode meta_prefs_get_focus_mode (void);
+/* returns NULL if GTK default should be used */
+const PangoFontDescription* meta_prefs_get_titlebar_font (void);
+/* returns 0 if default should be used */
+int meta_prefs_get_titlebar_font_size (void);
+
+#endif
+
+
+
+