[gimp] Use gtk_widget_get_window() instead of widget->window
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use gtk_widget_get_window() instead of widget->window
- Date: Sat, 10 Oct 2009 13:11:40 +0000 (UTC)
commit 641c2f4e2248007d36a4ea61b69eca3d9d90e314
Author: Michael Natterer <mitch gimp org>
Date: Sat Oct 10 14:50:07 2009 +0200
Use gtk_widget_get_window() instead of widget->window
plug-ins/common/gee.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/gee.c b/plug-ins/common/gee.c
index 2d66d2c..c901d21 100644
--- a/plug-ins/common/gee.c
+++ b/plug-ins/common/gee.c
@@ -255,7 +255,7 @@ show (void)
{
GtkStyle *style = gtk_widget_get_style (drawing_area);
- gdk_draw_rgb_32_image (drawing_area->window,
+ gdk_draw_rgb_32_image (gtk_widget_get_window (drawing_area),
style->white_gc,
0, 0, IWIDTH, IHEIGHT,
GDK_RGB_DITHER_NORMAL,
@@ -448,7 +448,8 @@ iterate (void)
GdkModifierType mask;
gint size, i;
- gdk_window_get_pointer (drawing_area->window, &rxp, &ryp, &mask);
+ gdk_window_get_pointer (gtk_widget_get_window (drawing_area),
+ &rxp, &ryp, &mask);
for (i = 0; i < BOBS_PER_FRAME; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]