mirror of https://github.com/GNOME/gimp.git
app/display/gimpdisplayshell-selection.c allocate structs using GSlice
* app/display/gimpdisplayshell-selection.c * app/display/gimpstatusbar.c: allocate structs using GSlice svn path=/trunk/; revision=22589
This commit is contained in:
parent
c7bffbceaa
commit
634ac74de4
|
@ -2,6 +2,8 @@
|
|||
|
||||
* app/dialogs/tips-parser.c
|
||||
* app/display/gimpdisplayshell-autoscroll.c
|
||||
* app/display/gimpdisplayshell-selection.c
|
||||
* app/display/gimpstatusbar.c
|
||||
* app/menus/plug-in-menus.c
|
||||
* app/plug-in/gimpenvirontable.c
|
||||
* app/plug-in/gimpinterpreterdb.c
|
||||
|
|
|
@ -112,7 +112,7 @@ gimp_display_shell_selection_init (GimpDisplayShell *shell)
|
|||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
g_return_if_fail (shell->selection == NULL);
|
||||
|
||||
selection = g_new0 (Selection, 1);
|
||||
selection = g_slice_new0 (Selection);
|
||||
|
||||
selection->shell = shell;
|
||||
selection->visible = TRUE;
|
||||
|
@ -152,7 +152,7 @@ gimp_display_shell_selection_free (GimpDisplayShell *shell)
|
|||
|
||||
selection_free_segs (selection);
|
||||
|
||||
g_free (selection);
|
||||
g_slice_free (Selection, selection);
|
||||
|
||||
shell->selection = NULL;
|
||||
}
|
||||
|
|
|
@ -537,7 +537,7 @@ gimp_statusbar_push_valist (GimpStatusbar *statusbar,
|
|||
}
|
||||
}
|
||||
|
||||
msg = g_new0 (GimpStatusbarMsg, 1);
|
||||
msg = g_slice_new0 (GimpStatusbarMsg);
|
||||
|
||||
msg->context_id = context_id;
|
||||
msg->text = message;
|
||||
|
@ -686,7 +686,7 @@ gimp_statusbar_replace_valist (GimpStatusbar *statusbar,
|
|||
g_return_if_fail (context != NULL);
|
||||
g_return_if_fail (format != NULL);
|
||||
|
||||
message = gimp_statusbar_vprintf (format, args);
|
||||
message = gimp_statusbar_vprintf (format, args);
|
||||
|
||||
context_id = gimp_statusbar_get_context_id (statusbar, context);
|
||||
|
||||
|
@ -706,7 +706,7 @@ gimp_statusbar_replace_valist (GimpStatusbar *statusbar,
|
|||
}
|
||||
}
|
||||
|
||||
msg = g_new0 (GimpStatusbarMsg, 1);
|
||||
msg = g_slice_new0 (GimpStatusbarMsg);
|
||||
|
||||
msg->context_id = context_id;
|
||||
msg->text = message;
|
||||
|
@ -807,7 +807,7 @@ gimp_statusbar_push_temp_valist (GimpStatusbar *statusbar,
|
|||
}
|
||||
}
|
||||
|
||||
msg = g_new0 (GimpStatusbarMsg, 1);
|
||||
msg = g_slice_new (GimpStatusbarMsg);
|
||||
|
||||
msg->context_id = statusbar->temp_context_id;
|
||||
msg->stock_id = g_strdup (stock_id);
|
||||
|
@ -1112,7 +1112,8 @@ gimp_statusbar_msg_free (GimpStatusbarMsg *msg)
|
|||
{
|
||||
g_free (msg->stock_id);
|
||||
g_free (msg->text);
|
||||
g_free (msg);
|
||||
|
||||
g_slice_free (GimpStatusbarMsg, msg);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
|
|
Loading…
Reference in New Issue