mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
allocate shell->highlight with GSlice.
2007-08-24 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell.c: allocate shell->highlight with GSlice. svn path=/trunk/; revision=23364
This commit is contained in:
parent
8f5819a5f6
commit
29759cd892
|
@ -1,3 +1,8 @@
|
|||
2007-08-24 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell.c: allocate shell->highlight with
|
||||
GSlice.
|
||||
|
||||
2007-08-24 Øyvind Kolås <pippin@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell-render.c: swapped center and middle
|
||||
|
|
|
@ -456,7 +456,7 @@ gimp_display_shell_destroy (GtkObject *object)
|
|||
|
||||
if (shell->highlight)
|
||||
{
|
||||
g_free (shell->highlight);
|
||||
g_slice_free (GdkRectangle, shell->highlight);
|
||||
shell->highlight = NULL;
|
||||
}
|
||||
|
||||
|
@ -1667,7 +1667,7 @@ gimp_display_shell_set_highlight (GimpDisplayShell *shell,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_free (shell->highlight);
|
||||
g_slice_free (GdkRectangle, shell->highlight);
|
||||
shell->highlight = NULL;
|
||||
|
||||
gimp_display_shell_expose_full (shell);
|
||||
|
@ -1675,7 +1675,7 @@ gimp_display_shell_set_highlight (GimpDisplayShell *shell,
|
|||
}
|
||||
else if (highlight)
|
||||
{
|
||||
shell->highlight = g_memdup (highlight, sizeof (GdkRectangle));
|
||||
shell->highlight = g_slice_dup (GdkRectangle, highlight);
|
||||
|
||||
gimp_display_shell_expose_full (shell);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue