diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-19 13:57:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-19 14:24:41 +0100 |
commit | 3bb099ecb3b63f365bbe514322201712108092ee (patch) | |
tree | 5a567359c21d2e1a4c705c15a39a444f335ccf77 /vcl | |
parent | f2bdfdb2952b4ef6064be65130242fbabb71f885 (diff) |
older gtks don't have gtk_widget_get_window
Change-Id: I700f45c680fb0154aecd37b54d8de9fe4ee9d238
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/window/gtksalframe.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx index 453116449999..a3e3b91dc6fc 100644 --- a/vcl/unx/gtk/window/gtksalframe.cxx +++ b/vcl/unx/gtk/window/gtksalframe.cxx @@ -628,7 +628,7 @@ static const GActionEntry app_entries[] = { gboolean ensure_dbus_setup( gpointer data ) { GtkSalFrame* pSalFrame = reinterpret_cast< GtkSalFrame* >( data ); - GdkWindow* gdkWindow = gtk_widget_get_window( pSalFrame->getWindow() ); + GdkWindow* gdkWindow = widget_get_window( pSalFrame->getWindow() ); if ( gdkWindow != NULL && g_object_get_data( G_OBJECT( gdkWindow ), "g-lo-menubar" ) == NULL ) { @@ -2312,7 +2312,7 @@ void GtkSalFrame::SetScreen( unsigned int nNewScreen, int eType, Rectangle *pSiz #endif { #if GTK_CHECK_VERSION(3,8,0) - gdk_window_set_fullscreen_mode( gtk_widget_get_window(m_pWindow), m_bSpanMonitorsWhenFullscreen + gdk_window_set_fullscreen_mode( widget_get_window(m_pWindow), m_bSpanMonitorsWhenFullscreen ? GDK_FULLSCREEN_ON_ALL_MONITORS : GDK_FULLSCREEN_ON_CURRENT_MONITOR ); #endif if( eType == SET_FULLSCREEN ) @@ -3560,7 +3560,7 @@ gboolean GtkSalFrame::signalMap( GtkWidget *pWidget, GdkEvent*, gpointer frame ) //window to span all displays. if (pThis->m_bFullscreen && pThis->m_bSpanMonitorsWhenFullscreen) { - GdkWindow* gdkwin = gtk_widget_get_window(pThis->m_pWindow); + GdkWindow* gdkwin = widget_get_window(pThis->m_pWindow); if (gdkwin) { OUString sProgramURL( "$BRAND_BASE_DIR/" LIBO_LIBEXEC_FOLDER "/xid-fullscreen-on-all-monitors"); |