-/* Disabled until wxImageList q solved
- if ((info.m_mask & wxTREE_MASK_IMAGE) == 0) {
- wxBitmap *bmp;
-
- if ((bmp = m_imageList->GetItem(info.m_image))->Ok()) {
- GdkBitmap *mask = NULL;
- if (bmp->GetMask()) mask = bmp->GetMask()->GetBitmap();
- GtkWidget *pixmap = gtk_pixmap_new( bmp->GetPixmap(), mask );
-
- gtk_widget_set_parent(pixmap, GTK_WIDGET(new_child->m_widget));
- gtk_widget_show(pixmap);
- GTK_TREE_ITEM(new_child->m_widget)->pixmaps_box = pixmap;
+/* Disabled until wxImageList q solved >>> seems it solved */
+/*
+ wxBitmap *bmp;
+ if ((new_child->m_mask & wxTREE_MASK_IMAGE) != 0) {
+ if (m_imageList != NULL) {
+// if ((bmp = m_imageList->GetBitmap(new_child->m_image)) != NULL) {
+ if ((bmp = m_imageList->GetBitmap(0)) != NULL) {
+ if (bmp->Ok()) {
+ GdkBitmap *mask = NULL;
+ if (bmp->GetMask()) mask = bmp->GetMask()->GetBitmap();
+ GtkWidget *pixmap = gtk_pixmap_new(bmp->GetPixmap(), mask);
+
+gtk_widget_unref(new_child->m_widget->plus_pix_widget);
+gtk_container_remove(GTK_CONTAINER(new_child->m_widget->pixmaps_box),
+ new_child->m_widget->plus_pix_widget);
+gtk_container_add(GTK_CONTAINER(new_child->m_widget->pixmaps_box),
+ pixmap);
+ gtk_widget_show(pixmap);
+ GTK_TREE_ITEM(new_child->m_widget)->plus_pix_widget = pixmap;
+ }
+ }
+
+ if ((bmp = m_imageList->GetBitmap(1)) != NULL) {
+ if (bmp->Ok()) {
+ GdkBitmap *mask = NULL;
+ if (bmp->GetMask()) mask = bmp->GetMask()->GetBitmap();
+ GtkWidget *pixmap = gtk_pixmap_new(bmp->GetPixmap(), mask);
+
+gtk_widget_unref(new_child->m_widget->minus_pix_widget);
+//gtk_container_remove(GTK_CONTAINER(new_child->m_widget->pixmaps_box),
+// new_child->m_widget->plus_pix_widget);
+//gtk_container_add(GTK_CONTAINER(new_child->m_widget->pixmaps_box),
+// pixmap);
+ gtk_widget_show(pixmap);
+ GTK_TREE_ITEM(new_child->m_widget)->minus_pix_widget = pixmap;
+ }
+ }