summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-11 16:36:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-11 16:42:34 +0000
commiteeef59d94cd358916d1defdb7925e25c740ac8d0 (patch)
treeb976b2b6cc39a19928e30192f68ed621d70ec292
parente786d60ceee3e32eff8bd77b13a9d1b3d00e78b9 (diff)
AllocateFrame only needed for gtk3 path
Change-Id: I118f640e770491448b16f1a9387ffe6df5063cd9
-rw-r--r--vcl/unx/gtk/window/gtksalframe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index f3a43531d386..afcdbe599626 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -405,6 +405,7 @@ void GtkSalFrame::doKeyCallback( guint state,
vcl::DeletionListener aDel( this );
#if GTK_CHECK_VERSION(3,0,0)
+#if 0
// shift-zero forces a re-draw and event is swallowed
if (keyval == GDK_0)
{
@@ -424,7 +425,7 @@ void GtkSalFrame::doKeyCallback( guint state,
fprintf(stderr, "toggle dump frames to %d\n", dumpframes);
return;
}
-
+#endif
#endif
/*
@@ -3115,7 +3116,6 @@ bool GtkSalFrame::Dispatch( const XEvent* pEvent )
maGeometry.nWidth = pEvent->xconfigure.width;
maGeometry.nHeight = pEvent->xconfigure.height;
setMinMaxSize();
- AllocateFrame();
getDisplay()->SendInternalEvent( this, NULL, SALEVENT_RESIZE );
}
}