app/widgets/gimpcontrollers.c app/widgets/gimpdevices.c
2007-05-22 Sven Neumann <sven@gimp.org> * app/widgets/gimpcontrollers.c * app/widgets/gimpdevices.c * app/widgets/gimpdevicestatus.c * app/widgets/gimpeditor.c: allocate structs using GSlice. svn path=/trunk/; revision=22575
This commit is contained in:

committed by
Sven Neumann

parent
9b5679547c
commit
b3d3f4f291
@ -540,19 +540,22 @@ gimp_editor_add_stock_box (GimpEditor *editor,
|
||||
return first_button;
|
||||
}
|
||||
|
||||
typedef struct _ExtendedAction ExtendedAction;
|
||||
|
||||
struct _ExtendedAction
|
||||
typedef struct
|
||||
{
|
||||
GdkModifierType mod_mask;
|
||||
GtkAction *action;
|
||||
};
|
||||
} ExtendedAction;
|
||||
|
||||
static void
|
||||
gimp_editor_button_extended_actions_free (GList *list)
|
||||
gimp_editor_button_extended_actions_free (GList *actions)
|
||||
{
|
||||
g_list_foreach (list, (GFunc) g_free, NULL);
|
||||
g_list_free (list);
|
||||
GList *list;
|
||||
|
||||
for (list = actions; list; list = list->next)
|
||||
g_slice_free (ExtendedAction, list->data);
|
||||
|
||||
g_list_free (actions);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -654,7 +657,7 @@ gimp_editor_add_action_button (GimpEditor *editor,
|
||||
|
||||
if (action && mod_mask)
|
||||
{
|
||||
ExtendedAction *ext = g_new0 (ExtendedAction, 1);
|
||||
ExtendedAction *ext = g_slice_new (ExtendedAction);
|
||||
|
||||
ext->mod_mask = mod_mask;
|
||||
ext->action = action;
|
||||
|
Reference in New Issue
Block a user