2005-12-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtksettings.c (gtk_settings_class_init): Update
+ class_n_properties after installing color-hash, since
+ other classes install settings, too.
+
+ * gtk/gtkctree.c:
+ * gtk/gtkclist.c: Fix some mistakes in the conversion
+ from mem chunks to slice allocator.
+
* gtk/gtkiconview.c (adjust_wrap_width): Adjust the
wrap-width also if an explicit item width is set.
(#322475, Alex Graveley)
2005-12-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtksettings.c (gtk_settings_class_init): Update
+ class_n_properties after installing color-hash, since
+ other classes install settings, too.
+
+ * gtk/gtkctree.c:
+ * gtk/gtkclist.c: Fix some mistakes in the conversion
+ from mem chunks to slice allocator.
+
* gtk/gtkiconview.c (adjust_wrap_width): Adjust the
wrap-width also if an explicit item width is set.
(#322475, Alex Graveley)
GtkCListRow *clist_row;
clist_row = g_slice_new (GtkCListRow);
- clist_row->cell = g_slice_new (GtkCell);
+ clist_row->cell = g_slice_alloc (sizeof (GtkCell) * clist->columns);
for (i = 0; i < clist->columns; i++)
{
if (clist_row->destroy)
clist_row->destroy (clist_row->data);
- g_slice_free (GtkCell, clist_row->cell);
+ g_slice_free1 (sizeof (GtkCell) * clist->columns, clist_row->cell);
g_slice_free (GtkCListRow, clist_row);
}
clist = GTK_CLIST (ctree);
ctree_row = g_slice_new (GtkCTreeRow);
- ctree_row->row.cell = g_slice_new (GtkCell);
+ ctree_row->row.cell = g_slice_alloc (sizeof (GtkCell) * clist->columns);
for (i = 0; i < clist->columns; i++)
{
dnotify (ddata);
}
- g_slice_free (GtkCell, ctree_row->row.cell);
+ g_slice_free1 (sizeof (GtkCell) * clist->columns, ctree_row->row.cell);
g_slice_free (GtkCListRow, ctree_row);
}
gobject_class->notify = gtk_settings_notify;
quark_property_parser = g_quark_from_static_string ("gtk-rc-property-parser");
-
result = settings_install_property_parser (class,
g_param_spec_int ("gtk-double-click-time",
P_("Double Click Time"),
g_assert (result == PROP_ENABLE_ANIMATIONS);
+
/**
* GtkSettings:color-hash:
*
P_("A hash table resentation of the color scheme."),
G_TYPE_HASH_TABLE,
GTK_PARAM_READABLE));
+
+ class_n_properties++;
+
}
static void