changeset 834:9a0725437bf1

Added the show_tools dillorc option
author corvid <corvid@lavabit.com>
date Wed, 28 Jan 2009 14:25:17 -0300
parents c50f3c64b023
children 1c71a547cc35
files dillorc src/prefs.c src/prefs.h src/ui.cc
diffstat 4 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dillorc	Wed Jan 28 08:51:05 2009 -0300
+++ b/dillorc	Wed Jan 28 14:25:17 2009 -0300
@@ -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
--- a/src/prefs.c	Wed Jan 28 08:51:05 2009 -0300
+++ b/src/prefs.c	Wed Jan 28 14:25:17 2009 -0300
@@ -105,6 +105,7 @@
    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 @@
    { "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 @@
    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 @@
    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;
--- a/src/prefs.h	Wed Jan 28 08:51:05 2009 -0300
+++ b/src/prefs.h	Wed Jan 28 14:25:17 2009 -0300
@@ -51,6 +51,7 @@
    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;
--- a/src/ui.cc	Wed Jan 28 08:51:05 2009 -0300
+++ b/src/ui.cc	Wed Jan 28 14:25:17 2009 -0300
@@ -974,6 +974,8 @@
       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 )