aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Resource.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-02-05 20:30:44 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-02-05 20:30:44 (GMT)
commit0da4be2a0114d4419ceb70a4c6b6342f8fd79852 (patch)
tree371575758618de52415c823f756346cb3e1a5bb4 /src/FbTk/Resource.cc
parente79228cc08ee1d0d20d7ef27103a5d167fb8f133 (diff)
downloadfluxbox-0da4be2a0114d4419ceb70a4c6b6342f8fd79852.zip
fluxbox-0da4be2a0114d4419ceb70a4c6b6342f8fd79852.tar.bz2
Feature: different MenuSearch modes
Fluxbox now supports three MenuSearch modes: * NoWhere - essentially "disabling" the menu search. * Somewhere - the search string matches somewhere. * ItemStart - the search string matches at the start of a menu item. The default value is "ItemStart", just in the good old times. As long as this feature is not configurable via the menu it would irritate users with distinct muscle memory who type without thinking OR checking the visual feedback: they would trigger items they did not intent to trigger after years of the old behavior. Once this feature get's an entry in the config menu the default value might change.
Diffstat (limited to 'src/FbTk/Resource.cc')
-rw-r--r--src/FbTk/Resource.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/FbTk/Resource.cc b/src/FbTk/Resource.cc
index 4be85de..af0c4c2 100644
--- a/src/FbTk/Resource.cc
+++ b/src/FbTk/Resource.cc
@@ -25,11 +25,7 @@
25#include "StringUtil.hh" 25#include "StringUtil.hh"
26 26
27#include <iostream> 27#include <iostream>
28#ifdef HAVE_CASSERT 28#include <cassert>
29 #include <cassert>
30#else
31 #include <assert.h>
32#endif
33 29
34using std::cerr; 30using std::cerr;
35using std::endl; 31using std::endl;
@@ -38,9 +34,9 @@ using std::string;
38namespace FbTk { 34namespace FbTk {
39 35
40ResourceManager::ResourceManager(const char *filename, bool lock_db) : 36ResourceManager::ResourceManager(const char *filename, bool lock_db) :
41 m_db_lock(0), 37 m_db_lock(0),
42 m_database(0), 38 m_database(0),
43 m_filename(filename ? filename : "") 39 m_filename(filename ? filename : "")
44{ 40{
45 static bool xrm_initialized = false; 41 static bool xrm_initialized = false;
46 if (!xrm_initialized) { 42 if (!xrm_initialized) {