gimp r25555 - in trunk: . app/tools
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25555 - in trunk: . app/tools
- Date: Thu, 1 May 2008 20:29:15 +0100 (BST)
Author: martinn
Date: Thu May 1 19:29:15 2008
New Revision: 25555
URL: http://svn.gnome.org/viewvc/gimp?rev=25555&view=rev
Log:
2008-05-01 Martin Nordholts <martinn svn gnome org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_active_modifier_key): Minor simplification.
Modified:
trunk/ChangeLog
trunk/app/tools/gimprectangletool.c
Modified: trunk/app/tools/gimprectangletool.c
==============================================================================
--- trunk/app/tools/gimprectangletool.c (original)
+++ trunk/app/tools/gimprectangletool.c Thu May 1 19:29:15 2008
@@ -1156,6 +1156,7 @@
GimpRectangleOptions *options;
GimpRectangleOptionsPrivate *options_private;
GimpRectangleToolPrivate *private;
+ gboolean button1_down;
g_return_if_fail (GIMP_IS_RECTANGLE_TOOL (tool));
@@ -1164,6 +1165,7 @@
private = gimp_rectangle_tool_get_private (rect_tool);
options = GIMP_RECTANGLE_TOOL_GET_OPTIONS (tool);
options_private = GIMP_RECTANGLE_OPTIONS_GET_PRIVATE (options);
+ button1_down = state & GDK_BUTTON1_MASK;
gimp_draw_tool_pause (draw_tool);
@@ -1187,7 +1189,7 @@
/* Only change the shape if the mouse is still down (i.e. the user is
* still editing the rectangle.
*/
- if (state & GDK_BUTTON1_MASK)
+ if (button1_down)
{
if (!options_private->fixed_rule_active)
{
@@ -1223,9 +1225,8 @@
gimp_rectangle_tool_update_highlight (rect_tool);
gimp_rectangle_tool_rectangle_changed (rect_tool);
-
}
- else if (state & GDK_BUTTON1_MASK)
+ else if (button1_down)
{
/* If we are leaving fixed_center mode we want to set the
* "other side" where it should be. Don't do anything if we
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]