summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk_config.c
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-08-16 22:28:01 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-08-16 22:28:01 +0000
commit791cd4174ec8bd735e89c352b7b70c6e8798d3cc (patch)
tree8594c6062202028de2fc856b91a195f36cb22f96 /mixgtk/mixgtk_config.c
parent02108b05dac2d5426a2740929261046812b9cec7 (diff)
downloadmdk-791cd4174ec8bd735e89c352b7b70c6e8798d3cc.tar.gz
mdk-791cd4174ec8bd735e89c352b7b70c6e8798d3cc.tar.bz2
toolbars added
Diffstat (limited to 'mixgtk/mixgtk_config.c')
-rw-r--r--mixgtk/mixgtk_config.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mixgtk/mixgtk_config.c b/mixgtk/mixgtk_config.c
index b444caf..052dea5 100644
--- a/mixgtk/mixgtk_config.c
+++ b/mixgtk/mixgtk_config.c
@@ -33,6 +33,9 @@ static const gchar *MIXGTK_CONFIG_FILE_ = "gmixvm.config";
static const gchar *SPLIT_KEY = "Split";
static const gchar *SPLIT_YES = "Yes";
static const gchar *SPLIT_NO = "No";
+static const gchar *SHOW_TB_KEY = "Toolbars";
+static const gchar *TB_YES = "Yes";
+static const gchar *TB_NO = "No";
static mix_config_t *config_ = NULL;
@@ -103,3 +106,16 @@ mixgtk_config_set_split (gboolean split)
{
mixgtk_config_update (SPLIT_KEY, split? SPLIT_YES : SPLIT_NO);
}
+
+gboolean
+mixgtk_config_show_toolbars (void)
+{
+ const gchar *show = mixgtk_config_get (SHOW_TB_KEY);
+ return (!show || !strcmp (show, TB_YES));
+}
+
+void
+mixgtk_config_set_show_toolbars (gboolean show)
+{
+ mixgtk_config_update (SHOW_TB_KEY, show? TB_YES : TB_NO);
+}