[gimp] Use gtk_widget_get_window() instead of widget->window
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Use gtk_widget_get_window() instead of widget->window
- Date: Wed, 15 Jul 2009 12:52:50 +0000 (UTC)
commit 2d442e4576e28c6d9a3e1a5bb9919b703d8213b8
Author: Michael Natterer <mitch gimp org>
Date: Wed Jul 15 14:52:27 2009 +0200
Use gtk_widget_get_window() instead of widget->window
app/display/gimpdisplayshell-coords.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-coords.c b/app/display/gimpdisplayshell-coords.c
index 9b4e787..ae30514 100644
--- a/app/display/gimpdisplayshell-coords.c
+++ b/app/display/gimpdisplayshell-coords.c
@@ -92,7 +92,8 @@ gimp_display_shell_get_device_coords (GimpDisplayShell *shell,
{
gdouble axes[GDK_AXIS_LAST];
- gdk_device_get_state (device, shell->canvas->window, axes, NULL);
+ gdk_device_get_state (device, gtk_widget_get_window (shell->canvas),
+ axes, NULL);
gdk_device_get_axis (device, axes, GDK_AXIS_X, &coords->x);
gdk_device_get_axis (device, axes, GDK_AXIS_Y, &coords->y);
@@ -186,7 +187,8 @@ gimp_display_shell_get_device_state (GimpDisplayShell *shell,
GdkDevice *device,
GdkModifierType *state)
{
- gdk_device_get_state (device, shell->canvas->window, NULL, state);
+ gdk_device_get_state (device, gtk_widget_get_window (shell->canvas),
+ NULL, state);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]