summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-04 17:10:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 17:10:55 +0000
commit1cdf1e90390bda6b059a4fa844e68619a00dd8a6 (patch)
tree20f65d480dec6d9be77d053757cf01a64a027175 /vcl/unx/gtk3
parent429ff8877a0a8c864b6b1fc227f6efccb61b5be6 (diff)
damaged does the same gtk_widget_queue_draw_area with -1 top and +2 dimension
Change-Id: I86428b381680455dfd8dcb2ef28decfd4063fe59
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index c54657b19c92..c86bac58646e 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -963,17 +963,11 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
}
cairo_destroy(cr); // unref
- queue_draw_area(&translatedRegion);
+ mpFrame->damaged(basegfx::B2IBox(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.Right(), rControlRegion.Bottom()));
return true;
}
-void GtkSalGraphics::queue_draw_area(cairo_rectangle_int_t *region)
-{
- if (!mpFrame->isDuringRender())
- gtk_widget_queue_draw_area(mpFrame->getWindow(), region->x, region->y, region->width, region->height);
-}
-
bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState,
const ImplControlValue&, const OUString&,
Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion )