gtk+ r20760 - in trunk: . gtk
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20760 - in trunk: . gtk
- Date: Fri, 4 Jul 2008 10:52:52 +0000 (UTC)
Author: mitch
Date: Fri Jul 4 10:52:52 2008
New Revision: 20760
URL: http://svn.gnome.org/viewvc/gtk+?rev=20760&view=rev
Log:
2008-07-04 Michael Natterer <mitch imendio com>
* gtk/gtkcombobox.c: allocate ComboCellInfo with GSlice.
Modified:
trunk/ChangeLog
trunk/gtk/gtkcombobox.c
Modified: trunk/gtk/gtkcombobox.c
==============================================================================
--- trunk/gtk/gtkcombobox.c (original)
+++ trunk/gtk/gtkcombobox.c Fri Jul 4 10:52:52 2008
@@ -4089,7 +4089,7 @@
g_object_ref_sink (cell);
- info = g_new0 (ComboCellInfo, 1);
+ info = g_slice_new0 (ComboCellInfo);
info->cell = cell;
info->expand = expand;
info->pack = GTK_PACK_START;
@@ -4143,7 +4143,7 @@
g_object_ref_sink (cell);
- info = g_new0 (ComboCellInfo, 1);
+ info = g_slice_new0 (ComboCellInfo);
info->cell = cell;
info->expand = expand;
info->pack = GTK_PACK_END;
@@ -4213,11 +4213,11 @@
for (i = priv->cells; i; i = i->next)
{
- ComboCellInfo *info = (ComboCellInfo *)i->data;
+ ComboCellInfo *info = (ComboCellInfo *)i->data;
gtk_combo_box_cell_layout_clear_attributes (layout, info->cell);
g_object_unref (info->cell);
- g_free (info);
+ g_slice_free (ComboCellInfo, info);
i->data = NULL;
}
g_slist_free (priv->cells);
@@ -5343,7 +5343,7 @@
g_slist_free (info->attributes);
g_object_unref (info->cell);
- g_free (info);
+ g_slice_free (ComboCellInfo, info);
}
g_slist_free (combo_box->priv->cells);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]