Commit ad331d56 authored by Michael Natterer's avatar Michael Natterer 😴

app: minor cleanup in gimp_display_shell_expose_item()

parent 7f1caddd
......@@ -68,19 +68,17 @@ void
gimp_display_shell_expose_item (GimpDisplayShell *shell,
GimpCanvasItem *item)
{
GdkWindow *window;
GdkRegion *region;
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
g_return_if_fail (GIMP_IS_CANVAS_ITEM (item));
window = gtk_widget_get_window (shell->canvas);
region = gimp_canvas_item_get_extents (item, shell);
if (region)
{
gdk_window_invalidate_region (window, region, TRUE);
gdk_window_invalidate_region (gtk_widget_get_window (shell->canvas),
region, TRUE);
gdk_region_destroy (region);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment