diff options
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r-- | src/ClientPattern.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc index 500574e..b2ad691 100644 --- a/src/ClientPattern.cc +++ b/src/ClientPattern.cc | |||
@@ -87,11 +87,13 @@ const Name2WinProperty name_2_winproperties[] = { // sorted for 'bsearch' | |||
87 | { "workspacename", ClientPattern::WORKSPACENAME } | 87 | { "workspacename", ClientPattern::WORKSPACENAME } |
88 | }; | 88 | }; |
89 | 89 | ||
90 | extern "C" { | ||
90 | int name_2_winproperty_cmp(const void* a, const void* b) { | 91 | int name_2_winproperty_cmp(const void* a, const void* b) { |
91 | return strcmp( | 92 | return strcmp( |
92 | reinterpret_cast<const Name2WinProperty*>(a)->name, | 93 | reinterpret_cast<const Name2WinProperty*>(a)->name, |
93 | reinterpret_cast<const Name2WinProperty*>(b)->name); | 94 | reinterpret_cast<const Name2WinProperty*>(b)->name); |
94 | } | 95 | } |
96 | } | ||
95 | 97 | ||
96 | const Name2WinProperty* find_winproperty_by_name(const FbTk::FbString& name) { | 98 | const Name2WinProperty* find_winproperty_by_name(const FbTk::FbString& name) { |
97 | 99 | ||
@@ -442,7 +444,7 @@ FbTk::FbString ClientPattern::getProperty(WinProperty prop, const Focusable &cli | |||
442 | break; | 444 | break; |
443 | case LAYER: | 445 | case LAYER: |
444 | if (fbwin) { | 446 | if (fbwin) { |
445 | result = ::Layer::getString(fbwin->layerNum()); | 447 | result = ::ResourceLayer::getString(fbwin->layerNum()); |
446 | } | 448 | } |
447 | break; | 449 | break; |
448 | case URGENT: | 450 | case URGENT: |