From b91e719f551c83467fcda32dc29f55025db03e09 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 22 Nov 2012 14:12:59 +0100 Subject: Use ENABLE_GMENU_INTEGRATION consistently Change-Id: I576bfa41b0dce0cba8c92c123f8747cf619fcffb --- vcl/unx/gtk/window/gtkframe.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vcl/unx/gtk') diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index fdc729029397..8db1a1d035b4 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -36,6 +36,8 @@ #endif #if defined(ENABLE_DBUS) && defined(ENABLE_GIO) # include +#endif +#if defined ENABLE_GMENU_INTEGRATION // defined in gtksalmenu.hxx above # include #endif @@ -99,7 +101,7 @@ using namespace com::sun::star; int GtkSalFrame::m_nFloats = 0; -#if defined(ENABLE_DBUS) && defined(ENABLE_GIO) +#if defined ENABLE_GMENU_INTEGRATION static GDBusConnection* pSessionBus = NULL; #endif @@ -688,7 +690,7 @@ GtkSalFrame::~GtkSalFrame() gtk_widget_destroy( GTK_WIDGET( m_pFixedContainer ) ); { SolarMutexGuard aGuard; -#if defined(ENABLE_DBUS) && defined(ENABLE_GIO) +#if defined ENABLE_GMENU_INTEGRATION if(m_nWatcherId) g_bus_unwatch_name(m_nWatcherId); #endif @@ -696,7 +698,7 @@ GtkSalFrame::~GtkSalFrame() { g_object_set_data( G_OBJECT( m_pWindow ), "SalFrame", NULL ); -#if defined(ENABLE_DBUS) && defined(ENABLE_GIO) +#if defined ENABLE_GMENU_INTEGRATION if ( pSessionBus ) { if ( m_nHudAwarenessId ) -- cgit v1.2.3