gimp r26844 - in trunk: . app/widgets
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26844 - in trunk: . app/widgets
- Date: Wed, 3 Sep 2008 20:13:35 +0000 (UTC)
Author: mitch
Date: Wed Sep 3 20:13:35 2008
New Revision: 26844
URL: http://svn.gnome.org/viewvc/gimp?rev=26844&view=rev
Log:
2008-09-03 Michael Natterer <mitch gimp org>
* app/widgets/gimpnavigationview.c
(gimp_navigation_view_motion_notify): remove the call to
gdk_window_get_pointer() again.
(gimp_navigation_view_grab_pointer): instead, grab the pointer
properly with owner_events=FALSE so all events are reported with
respect to the widget's window.
Modified:
trunk/ChangeLog
trunk/app/widgets/gimpnavigationview.c
Modified: trunk/app/widgets/gimpnavigationview.c
==============================================================================
--- trunk/app/widgets/gimpnavigationview.c (original)
+++ trunk/app/widgets/gimpnavigationview.c Wed Sep 3 20:13:35 2008
@@ -255,7 +255,7 @@
window = GIMP_VIEW (nav_view)->event_window;
- gdk_pointer_grab (window, TRUE,
+ gdk_pointer_grab (window, FALSE,
GDK_BUTTON_RELEASE_MASK |
GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_MOTION_MASK |
@@ -383,7 +383,6 @@
{
GimpNavigationView *nav_view = GIMP_NAVIGATION_VIEW (widget);
GimpView *view = GIMP_VIEW (widget);
- gint x, y;
if (! nav_view->has_grab)
{
@@ -416,11 +415,9 @@
return FALSE;
}
- gdk_window_get_pointer (view->event_window, &x, &y, NULL);
-
gimp_navigation_view_move_to (nav_view,
- x - nav_view->motion_offset_x,
- y - nav_view->motion_offset_y);
+ mevent->x - nav_view->motion_offset_x,
+ mevent->y - nav_view->motion_offset_y);
gdk_event_request_motions (mevent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]