Use the slice allocator for many small allocations.
2006-01-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccelmap.c: * gtk/gtkactiongroup.c: * gtk/gtkdialog.c: * gtk/gtkfilesystemunix.c: * gtk/gtkgc.c: * gtk/gtkkeyhash.c: * gtk/gtkplug.c: * gtk/gtktextiter.c: * gtk/gtktextlayout.c: * gtk/gtkuimanager.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: * gtk/gtkxembed.c: Use the slice allocator for many small allocations. * gtk/gtkcolorsel.c: * gtk/gtktreeview.c: Use IPN. * gtk/gtkwidget.c: Remove an unused field from the AccelPath struct.
This commit is contained in:
committed by
Matthias Clasen
parent
f827de4ec4
commit
04eceaf621
@ -57,8 +57,8 @@ typedef struct {
|
||||
guint accel_mods;
|
||||
guint std_accel_key;
|
||||
guint std_accel_mods;
|
||||
guint changed : 1;
|
||||
guint lock_count;
|
||||
guint changed : 1;
|
||||
guint lock_count : 15;
|
||||
GSList *groups;
|
||||
} AccelEntry;
|
||||
|
||||
@ -179,8 +179,8 @@ gtk_accel_map_add_entry (const gchar *accel_path,
|
||||
}
|
||||
else
|
||||
{
|
||||
entry = g_new0 (AccelEntry, 1);
|
||||
entry->accel_path = g_quark_to_string (g_quark_from_string (accel_path));
|
||||
entry = g_slice_new0 (AccelEntry);
|
||||
entry->accel_path = g_intern_string (accel_path);
|
||||
entry->std_accel_key = accel_key;
|
||||
entry->std_accel_mods = accel_mods;
|
||||
entry->accel_key = accel_key;
|
||||
|
||||
Reference in New Issue
Block a user