minor cleanup.

2006-06-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_notify_highlight): minor cleanup.
This commit is contained in:
Sven Neumann 2006-06-06 18:07:04 +00:00 committed by Sven Neumann
parent aafaa7def1
commit 563af4aea9
2 changed files with 17 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2006-06-06 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_notify_highlight): minor cleanup.
2006-06-06 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-interface.[ch]

View File

@ -2222,8 +2222,6 @@ gimp_rectangle_tool_notify_highlight (GimpRectangleOptions *options,
GimpTool *tool = GIMP_TOOL (rectangle);
GimpDisplayShell *shell;
gboolean highlight;
gint x1, y1;
gint x2, y2;
if (! tool->display)
return;
@ -2232,16 +2230,18 @@ gimp_rectangle_tool_notify_highlight (GimpRectangleOptions *options,
g_object_get (options, "highlight", &highlight, NULL);
g_object_get (rectangle,
"x1", &x1,
"y1", &y1,
"x2", &x2,
"y2", &y2,
NULL);
if (highlight)
{
GdkRectangle rect;
gint x1, y1;
gint x2, y2;
g_object_get (rectangle,
"x1", &x1,
"y1", &y1,
"x2", &x2,
"y2", &y2,
NULL);
rect.x = x1;
rect.y = y1;
@ -2251,7 +2251,9 @@ gimp_rectangle_tool_notify_highlight (GimpRectangleOptions *options,
gimp_display_shell_set_highlight (shell, &rect);
}
else
gimp_display_shell_set_highlight (shell, NULL);
{
gimp_display_shell_set_highlight (shell, NULL);
}
}
static void