diff options
author | Lucas Baudin <xapantu@gmail.com> | 2011-09-29 19:47:01 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-25 13:41:49 +0100 |
commit | ef93683de1b1d1dbcd7e76df5033c4d117198667 (patch) | |
tree | 2fef99268387dc501e1988c94032b548d595c763 /vcl/unx/gtk/window/gtkframe.cxx | |
parent | 6da6ddcf0393f92eadf4d2db331b1514c823ec7e (diff) |
Gtk3 fixes, I tweaked the damage function to debug the rendering (the damage are is bigger to see a whole widget), if will need to be removed once we will fix that
Diffstat (limited to 'vcl/unx/gtk/window/gtkframe.cxx')
-rw-r--r-- | vcl/unx/gtk/window/gtkframe.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index 830822a2fc93..d9150aa93a34 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -2997,11 +2997,15 @@ void GtkSalFrame::damaged (const basegfx::B2IRange& rDamageRect) (int) rDamageRect.getHeight(), area ); #endif + /* FIXME: this is a dirty hack, to render buttons correctly, we + * should of course remove the -100 and + 200, but the whole area + * won't be rendered then. + */ gtk_widget_queue_draw_area( m_pWindow, - rDamageRect.getMinX(), - rDamageRect.getMinY(), - rDamageRect.getWidth(), - rDamageRect.getHeight() ); + rDamageRect.getMinX() - 100, + rDamageRect.getMinY() - 100, + rDamageRect.getWidth() + 200, + rDamageRect.getHeight() + 200 ); #endif } @@ -3132,7 +3136,6 @@ 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 |