diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-08-16 22:28:01 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2001-08-16 22:28:01 +0000 |
commit | 3bdd57805ef13558d09d4ec895f316e3b5cb52db (patch) | |
tree | 6977452fbe68f744095cf44413e9cf8460f47aaf /mixgtk/mixgtk_config.c | |
parent | 6dbc24d904d8dd71ece310e08cd01be72efff703 (diff) | |
download | mdk-3bdd57805ef13558d09d4ec895f316e3b5cb52db.tar.gz mdk-3bdd57805ef13558d09d4ec895f316e3b5cb52db.tar.bz2 |
toolbars added
Diffstat (limited to 'mixgtk/mixgtk_config.c')
-rw-r--r-- | mixgtk/mixgtk_config.c | 16 |
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); +} |