mirror of https://github.com/GNOME/gimp.git
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:
parent
458230bf8d
commit
e4532fe2a8
app/display
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -195,7 +195,6 @@ struct _GimpDisplayShell
|
|||
|
||||
gboolean button_press_before_focus;
|
||||
|
||||
GdkRectangle *highlight; /* in image coordinates, can be NULL */
|
||||
GimpDrawable *mask;
|
||||
GimpRGB mask_color;
|
||||
|
||||
|
|
Loading…
Reference in New Issue