1998-12-08 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gtkdtree.c (gtk_dtree_new): Use imlib's visual and colormap.
This commit is contained in:
Miguel de Icaza 1998-12-09 01:56:24 +00:00
parent 1df4f2d736
commit 2f018f6938
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
1998-12-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_new): Use imlib's visual and colormap.
* gscreen.c (panel_create_tree_view): Use the colormap and visual
from imlib when creating the DTree,
1998-12-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_drag_data_received): Doh. Use the correct

View File

@ -34,6 +34,7 @@
#include "gpopup.h"
#include "gcliplabel.h"
#include "gblist.h"
#include "gicon.h"
#include "../vfs/vfs.h"
#include <gdk/gdkprivate.h>
@ -1656,6 +1657,7 @@ panel_create_tree_view (WPanel *panel)
GtkWidget *tree;
tree = gtk_dtree_new ();
gtk_signal_connect (GTK_OBJECT (tree), "directory_changed",
GTK_SIGNAL_FUNC (panel_chdir), panel);

View File

@ -521,8 +521,12 @@ gtk_dtree_new (void)
{
GtkWidget *widget;
gtk_widget_push_visual (gdk_imlib_get_visual ());
gtk_widget_push_colormap (gdk_imlib_get_colormap ());
widget = gtk_type_new (GTK_TYPE_DTREE);
gtk_dtree_construct (GTK_DTREE (widget));
gtk_widget_pop_colormap ();
gtk_widget_pop_visual ();
return widget;
}