moved last motion stuff to the end
svn path=/trunk/; revision=26233
This commit is contained in:
@ -338,15 +338,15 @@ gimp_display_shell_init (GimpDisplayShell *shell)
|
|||||||
shell->scroll_start_y = 0;
|
shell->scroll_start_y = 0;
|
||||||
shell->button_press_before_focus = FALSE;
|
shell->button_press_before_focus = FALSE;
|
||||||
|
|
||||||
|
shell->highlight = NULL;
|
||||||
|
shell->mask = NULL;
|
||||||
|
|
||||||
shell->last_motion_time = 0;
|
shell->last_motion_time = 0;
|
||||||
shell->last_motion_delta_x = 0.0;
|
shell->last_motion_delta_x = 0.0;
|
||||||
shell->last_motion_delta_y = 0.0;
|
shell->last_motion_delta_y = 0.0;
|
||||||
shell->last_motion_distance = 0.0;
|
shell->last_motion_distance = 0.0;
|
||||||
shell->last_motion_delta_time = 0.0;
|
shell->last_motion_delta_time = 0.0;
|
||||||
|
|
||||||
shell->highlight = NULL;
|
|
||||||
shell->mask = NULL;
|
|
||||||
|
|
||||||
gtk_window_set_role (GTK_WINDOW (shell), "gimp-image-window");
|
gtk_window_set_role (GTK_WINDOW (shell), "gimp-image-window");
|
||||||
gtk_window_set_resizable (GTK_WINDOW (shell), TRUE);
|
gtk_window_set_resizable (GTK_WINDOW (shell), TRUE);
|
||||||
|
|
||||||
|
@ -181,13 +181,6 @@ struct _GimpDisplayShell
|
|||||||
gint scroll_start_y;
|
gint scroll_start_y;
|
||||||
gboolean button_press_before_focus;
|
gboolean button_press_before_focus;
|
||||||
|
|
||||||
guint32 last_motion_time; /* previous time of a forwarded motion event */
|
|
||||||
guint32 last_read_motion_time;
|
|
||||||
gdouble last_motion_delta_time;
|
|
||||||
gdouble last_motion_delta_x;
|
|
||||||
gdouble last_motion_delta_y;
|
|
||||||
gdouble last_motion_distance;
|
|
||||||
|
|
||||||
GdkRectangle *highlight; /* in image coordinates, can be NULL */
|
GdkRectangle *highlight; /* in image coordinates, can be NULL */
|
||||||
GimpDrawable *mask;
|
GimpDrawable *mask;
|
||||||
GimpChannelType mask_color;
|
GimpChannelType mask_color;
|
||||||
@ -195,6 +188,14 @@ struct _GimpDisplayShell
|
|||||||
gpointer scroll_info;
|
gpointer scroll_info;
|
||||||
|
|
||||||
GimpCoords last_coords; /* last motion event */
|
GimpCoords last_coords; /* last motion event */
|
||||||
|
|
||||||
|
guint32 last_motion_time; /* previous time of a forwarded motion event */
|
||||||
|
guint32 last_read_motion_time;
|
||||||
|
gdouble last_motion_delta_time;
|
||||||
|
gdouble last_motion_delta_x;
|
||||||
|
gdouble last_motion_delta_y;
|
||||||
|
gdouble last_motion_distance;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GimpDisplayShellClass
|
struct _GimpDisplayShellClass
|
||||||
|
Reference in New Issue
Block a user