Allocate with GSlice:
2008-07-04 Michael Natterer <mitch@imendio.com> Allocate with GSlice: * gtk/gtkassistant.c: GtkAssistantPage * gtk/gtkcellview.c: GtkCellViewCellInfo * gtk/gtkentry.c: GtkEntryPasswordHint, PopupInfo * gtk/gtkfilefilter.c: FilterRule * gtk/gtknotebook.c: GtkNotebookPage svn path=/trunk/; revision=20761
This commit is contained in:
committed by
Michael Natterer
parent
d905a906a4
commit
da4da16baf
@ -4044,7 +4044,7 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
|
||||
|
||||
gtk_widget_freeze_child_notify (child);
|
||||
|
||||
page = g_new0 (GtkNotebookPage, 1);
|
||||
page = g_slice_new0 (GtkNotebookPage);
|
||||
page->child = child;
|
||||
|
||||
nchildren = g_list_length (notebook->children);
|
||||
@ -4387,7 +4387,7 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
|
||||
page->last_focus_child = NULL;
|
||||
}
|
||||
|
||||
g_free (page);
|
||||
g_slice_free (GtkNotebookPage, page);
|
||||
|
||||
gtk_notebook_update_labels (notebook);
|
||||
if (need_resize)
|
||||
|
||||
Reference in New Issue
Block a user