aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dillorc1
-rw-r--r--src/prefs.c6
-rw-r--r--src/prefs.h1
-rw-r--r--src/ui.cc2
4 files changed, 10 insertions, 0 deletions
diff --git a/dillorc b/dillorc
index 0f374faf..fce2b1f7 100644
--- a/dillorc
+++ b/dillorc
@@ -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;
diff --git a/src/ui.cc b/src/ui.cc
index 97e6027c..e572d439 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -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 )