gtk_cmctree_class_init (GtkCMCTreeClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
-#if !GTK_CHECK_VERSION(3, 0, 0)
GtkObjectClass *object_class;
-#else /* for simplicity */
- GtkWidgetClass *object_class;
-#endif
GtkWidgetClass *widget_class;
GtkCMCListClass *clist_class;
GtkBindingSet *binding_set;
gobject_class->constructor = gtk_cmctree_constructor;
-#if !GTK_CHECK_VERSION(3, 0, 0)
object_class = (GtkObjectClass *) klass;
-#else /* for simplicity */
- object_class = (GtkWidgetClass *) klass;
-#endif
widget_class = (GtkWidgetClass *) klass;
container_class = (GtkContainerClass *) klass;
clist_class = (GtkCMCListClass *) klass;
GTK_CMCTREE_ROW (node)->row.style =
gtk_style_attach (GTK_CMCTREE_ROW (node)->row.style, clist->clist_window);
-#if !GTK_CHECK_VERSION(3, 0, 0)
if (GTK_CMCTREE_ROW (node)->row.fg_set || GTK_CMCTREE_ROW (node)->row.bg_set)
{
GdkColormap *colormap;
if (GTK_CMCTREE_ROW (node)->row.bg_set)
gdk_colormap_alloc_color (colormap, &(GTK_CMCTREE_ROW (node)->row.background), TRUE, TRUE);
}
-#endif
for (i = 0; i < clist->columns; i++)
if (GTK_CMCTREE_ROW (node)->row.cell[i].style)
{
GTK_CMCTREE_ROW (node)->row.foreground = *color;
GTK_CMCTREE_ROW (node)->row.fg_set = TRUE;
-#if !GTK_CHECK_VERSION(3, 0, 0)
if (gtk_widget_get_realized (GTK_WIDGET(ctree)))
gdk_colormap_alloc_color (gtk_widget_get_colormap (GTK_WIDGET (ctree)),
>K_CMCTREE_ROW (node)->row.foreground, TRUE, TRUE);
-#endif
}
else
GTK_CMCTREE_ROW (node)->row.fg_set = FALSE;
{
GTK_CMCTREE_ROW (node)->row.background = *color;
GTK_CMCTREE_ROW (node)->row.bg_set = TRUE;
-#if !GTK_CHECK_VERSION(3, 0, 0)
if (gtk_widget_get_realized (GTK_WIDGET(ctree)))
gdk_colormap_alloc_color (gtk_widget_get_colormap (GTK_WIDGET (ctree)),
>K_CMCTREE_ROW (node)->row.background, TRUE, TRUE);
-#endif
}
else
GTK_CMCTREE_ROW (node)->row.bg_set = FALSE;