diff options
author | corvid <corvid@lavabit.com> | 2009-01-28 14:25:17 -0300 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-01-28 14:25:17 -0300 |
commit | a41d337f9315dda71b4bd97c2720708417824fa3 (patch) | |
tree | c2a8e92b8cf27a05b1e80f2010da62824bd9a74d | |
parent | fa21fc6b615f4b199edae837e8cc2561998f017b (diff) |
Added the show_tools dillorc option
-rw-r--r-- | dillorc | 1 | ||||
-rw-r--r-- | src/prefs.c | 6 | ||||
-rw-r--r-- | src/prefs.h | 1 | ||||
-rw-r--r-- | src/ui.cc | 2 |
4 files changed, 10 insertions, 0 deletions
@@ -189,6 +189,7 @@ #show_save=YES #show_stop=YES #show_bookmarks=YES +#show_tools=YES #show_filemenu=YES #show_clear_url=YES #show_url=YES diff --git a/src/prefs.c b/src/prefs.c index c60430f0..6f6ecd18 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -105,6 +105,7 @@ typedef enum { DRC_TOKEN_SHOW_SAVE, DRC_TOKEN_SHOW_SEARCH, DRC_TOKEN_SHOW_STOP, + DRC_TOKEN_SHOW_TOOLS, DRC_TOKEN_SHOW_TOOLTIP, DRC_TOKEN_SHOW_URL, DRC_TOKEN_SMALL_ICONS, @@ -173,6 +174,7 @@ static const SymNode_t symbols[] = { { "show_save", DRC_TOKEN_SHOW_SAVE }, { "show_search", DRC_TOKEN_SHOW_SEARCH }, { "show_stop", DRC_TOKEN_SHOW_STOP }, + { "show_tools", DRC_TOKEN_SHOW_TOOLS }, { "show_tooltip", DRC_TOKEN_SHOW_TOOLTIP }, { "show_url", DRC_TOKEN_SHOW_URL }, { "small_icons", DRC_TOKEN_SMALL_ICONS }, @@ -325,6 +327,9 @@ static int Prefs_parse_pair(char *name, char *value) case DRC_TOKEN_SHOW_BOOKMARKS: prefs.show_bookmarks = (strcmp(value, "YES") == 0); break; + case DRC_TOKEN_SHOW_TOOLS: + prefs.show_tools = (strcmp(value, "YES") == 0); + break; case DRC_TOKEN_SHOW_FILEMENU: prefs.show_filemenu = (strcmp(value, "YES") == 0); break; @@ -478,6 +483,7 @@ void a_Prefs_init(void) prefs.show_save=TRUE; prefs.show_stop=TRUE; prefs.show_bookmarks=TRUE; + prefs.show_tools=TRUE; prefs.show_filemenu=TRUE; prefs.show_clear_url=TRUE; prefs.show_url=TRUE; diff --git a/src/prefs.h b/src/prefs.h index 1e638c8e..75d102f6 100644 --- a/src/prefs.h +++ b/src/prefs.h @@ -51,6 +51,7 @@ struct _DilloPrefs { bool_t show_save; bool_t show_stop; bool_t show_bookmarks; + bool_t show_tools; bool_t show_filemenu; bool_t show_clear_url; bool_t show_url; @@ -974,6 +974,8 @@ void UI::customize(int flags) Stop->hide(); if ( !prefs.show_bookmarks ) Bookmarks->hide(); + if ( !prefs.show_tools ) + Tools->hide(); if ( !prefs.show_clear_url ) Clear->hide(); if ( !prefs.show_url ) |