[gimp] app: minor cleanup in gimp_display_shell_expose_item()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: minor cleanup in gimp_display_shell_expose_item()
- Date: Thu, 30 Sep 2010 07:06:19 +0000 (UTC)
commit ad331d562634450729d324951a5ffddfe247c3a8
Author: Michael Natterer <mitch gimp org>
Date: Thu Sep 30 09:05:55 2010 +0200
app: minor cleanup in gimp_display_shell_expose_item()
app/display/gimpdisplayshell-expose.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-expose.c b/app/display/gimpdisplayshell-expose.c
index c29645e..b3e8abb 100644
--- a/app/display/gimpdisplayshell-expose.c
+++ b/app/display/gimpdisplayshell-expose.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]