[Libreoffice-commits] .: vcl/unx
Michael Meeks
michael at kemper.freedesktop.org
Thu Oct 27 02:38:24 PDT 2011
vcl/unx/gtk/window/gtkframe.cxx | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 71c5eb4c41fe4f36f975950cbb616796d9d7bfe5
Author: Michael Meeks <michael.meeks at suse.com>
Date: Thu Oct 27 10:38:12 2011 +0100
gtk3: disable signalDraw for gtk2 case to avoid cairo build issues
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 87d1f49..8cf6cd7 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -3118,7 +3118,6 @@ void GtkSalFrame::renderArea( cairo_t *cr, cairo_rectangle_t *area )
cairo_restore( cr );
}
}
-#endif
gboolean GtkSalFrame::signalDraw( GtkWidget*, cairo_t *cr, gpointer frame )
{
@@ -3132,11 +3131,9 @@ gboolean GtkSalFrame::signalDraw( GtkWidget*, cairo_t *cr, gpointer frame )
if (debugQueuePureRedraw > 0)
{
debugQueuePureRedraw--;
-#if GTK_CHECK_VERSION(3,0,0)
fprintf (stderr, "skip signalDraw for debug %d\n", debugQueuePureRedraw);
cairo_rectangle_t rect = { x1, y1, x2 - x1, y2 - y1 };
pThis->renderArea( cr, &rect );
- #endif
return FALSE;
}
@@ -3157,15 +3154,15 @@ gboolean GtkSalFrame::signalDraw( GtkWidget*, cairo_t *cr, gpointer frame )
struct SalPaintEvent aEvent( rect.x, rect.y, rect.width, rect.height );
aEvent.mbImmediateUpdate = true;
pThis->CallCallback( SALEVENT_PAINT, &aEvent );
-#if GTK_CHECK_VERSION(3,0,0)
pThis->renderArea( cr, &rect );
-#endif
}
pThis->m_nDuringRender--;
return FALSE;
}
+#endif // GTK_CHECK_VERSION(3,0,0)
+
gboolean GtkSalFrame::signalExpose( GtkWidget*, GdkEventExpose* pEvent, gpointer frame )
{
More information about the Libreoffice-commits
mailing list