VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/GraphicUserInterface.cpp
diff options
context:
space:
mode:
authorUnit 193 <32967979+unit193@users.noreply.github.com>2021-08-15 18:54:21 -0400
committerGitHub <noreply@github.com>2021-08-16 00:54:21 +0200
commit849cd010e8b30060893f0fa39ed2d7742aba6d11 (patch)
tree937ba5cdf841ae770849a44a840f6627ff847c53 /src/Main/GraphicUserInterface.cpp
parentb1323cabae32a2b0a9a96d7f228c1257c6188058 (diff)
downloadVeraCrypt-849cd010e8b30060893f0fa39ed2d7742aba6d11.tar.gz
VeraCrypt-849cd010e8b30060893f0fa39ed2d7742aba6d11.zip
Add compile-time toggleable support for application indicators, off by default. (#815)
This tries to figure out, via wx-config, if you're using GTK2 or GTK3 and uses the associated Ayatana library.
Diffstat (limited to 'src/Main/GraphicUserInterface.cpp')
-rwxr-xr-xsrc/Main/GraphicUserInterface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp
index 04e98855..0d90629e 100755
--- a/src/Main/GraphicUserInterface.cpp
+++ b/src/Main/GraphicUserInterface.cpp
@@ -1754,6 +1754,10 @@ namespace VeraCrypt
}
BackgroundMode = state;
+
+#ifdef HAVE_INDICATORS
+ gtk_menu_item_set_label ((GtkMenuItem*) ((MainFrame*) mMainFrame)->indicator_item_showhide, LangString[Gui->IsInBackgroundMode() ? "SHOW_TC" : "HIDE_TC"].mb_str());
+#endif
}
void GraphicUserInterface::SetListCtrlColumnWidths (wxListCtrl *listCtrl, list <int> columnWidthPermilles, bool hasVerticalScrollbar) const