summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-02-28 10:27:28 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-02-28 10:34:53 +0200
commit1e53d134f03831f4e0f6d3646c20283c4a01b897 (patch)
tree542f77226126c2efa2ff34c1e4fb657f9514aa24 /vcl
parentb354775b377d29afe63c4b15cb4574a398dca007 (diff)
mbUnityMode is always false
Change-Id: I7c4b05cd02dee2b6efb926955759d725428e1dc1
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/unx/gtk/gtksalmenu.hxx1
-rw-r--r--vcl/unx/gtk/gtksalmenu.cxx5
2 files changed, 1 insertions, 5 deletions
diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx
index b88aec85e64e..51cb4511f75e 100644
--- a/vcl/inc/unx/gtk/gtksalmenu.hxx
+++ b/vcl/inc/unx/gtk/gtksalmenu.hxx
@@ -44,7 +44,6 @@ private:
std::vector< GtkSalMenuItem* > maItems;
bool mbMenuBar;
- bool mbUnityMode;
GtkWidget* mpMenuBarWidget;
GtkWidget* mpCloseButton;
Menu* mpVCLMenu;
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index b89a35187dc9..e01c93454037 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -428,7 +428,6 @@ bool GtkSalMenu::ShowNativePopupMenu(FloatingWindow* pWin, const Rectangle& /*rR
GtkSalMenu::GtkSalMenu( bool bMenuBar ) :
mbMenuBar( bMenuBar ),
- mbUnityMode ( false ),
mpMenuBarWidget( nullptr ),
mpCloseButton( nullptr ),
mpVCLMenu( nullptr ),
@@ -654,13 +653,11 @@ void GtkSalMenu::SetFrame(const SalFrame* pFrame)
g_lo_menu_insert_section( pMenuModel, 0, nullptr, mpMenuModel );
#if GTK_CHECK_VERSION(3,0,0)
- if (!mbUnityMode)
+ if (!bUnityMode)
{
DestroyMenuBarWidget();
CreateMenuBarWidget();
}
-#else
- (void)mbUnityMode;
#endif
}