[gimp] app: no need to say shell->canvas when we are in a canvas callback
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: no need to say shell->canvas when we are in a canvas callback
- Date: Mon, 1 Mar 2010 23:13:05 +0000 (UTC)
commit 62af8de7ea7f07e95ce5124fb31cf0c90bc5ee1c
Author: Michael Natterer <mitch gimp org>
Date: Tue Mar 2 00:11:47 2010 +0100
app: no need to say shell->canvas when we are in a canvas callback
app/display/gimpdisplayshell-callbacks.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index 74289f8..ee4400d 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -238,7 +238,7 @@ gimp_display_shell_canvas_realize (GtkWidget *canvas,
GimpRGB padding_color;
GtkAllocation allocation;
- gtk_widget_grab_focus (shell->canvas);
+ gtk_widget_grab_focus (canvas);
gimp_display_shell_get_padding (shell, &padding_mode, &padding_color);
gimp_display_shell_set_padding (shell, padding_mode, &padding_color);
@@ -651,11 +651,11 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
}
gimp_device_info_get_event_coords (gimp_devices_get_current (gimp),
- gtk_widget_get_window (shell->canvas),
+ gtk_widget_get_window (canvas),
event,
&display_coords);
gimp_device_info_get_event_state (gimp_devices_get_current (gimp),
- gtk_widget_get_window (shell->canvas),
+ gtk_widget_get_window (canvas),
event,
&state);
time = gdk_event_get_time (event);
@@ -1260,11 +1260,11 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
GimpDeviceInfo *device = gimp_devices_get_current (gimp);
gimp_device_info_get_event_coords (device,
- gtk_widget_get_window (shell->canvas),
+ gtk_widget_get_window (canvas),
compressed_motion,
&display_coords);
gimp_device_info_get_event_state (device,
- gtk_widget_get_window (shell->canvas),
+ gtk_widget_get_window (canvas),
compressed_motion,
&state);
time = gdk_event_get_time (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]