app: call gimp_canvas_item_begin,end_change() around passe partout changes

Also remove the "highlight" member from the GimpDisplayShell struct.
This commit is contained in:
Michael Natterer 2010-11-12 20:18:03 +01:00
parent 458230bf8d
commit e4532fe2a8
2 changed files with 4 additions and 7 deletions

View File

@ -787,12 +787,6 @@ gimp_display_shell_dispose (GObject *object)
shell->checkerboard = NULL;
}
if (shell->highlight)
{
g_slice_free (GdkRectangle, shell->highlight);
shell->highlight = NULL;
}
if (shell->mask)
{
g_object_unref (shell->mask);
@ -1761,6 +1755,8 @@ gimp_display_shell_set_highlight (GimpDisplayShell *shell,
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
gimp_canvas_item_begin_change (shell->passe_partout);
if (highlight)
{
g_object_set (shell->passe_partout,
@ -1775,6 +1771,8 @@ gimp_display_shell_set_highlight (GimpDisplayShell *shell,
{
gimp_canvas_item_set_visible (shell->passe_partout, FALSE);
}
gimp_canvas_item_end_change (shell->passe_partout);
}
/**

View File

@ -195,7 +195,6 @@ struct _GimpDisplayShell
gboolean button_press_before_focus;
GdkRectangle *highlight; /* in image coordinates, can be NULL */
GimpDrawable *mask;
GimpRGB mask_color;