e-map: Take colormap and visual from the widget

No need to use magic visuals and colormaps anymore, we're all cairo
these days.
This commit is contained in:
Benjamin Otte
2010-10-21 02:01:32 +02:00
committed by Matthew Barnes
parent 200df519f1
commit 168b536e82

View File

@ -383,8 +383,8 @@ e_map_realize (GtkWidget *widget)
attr.width = allocation.width;
attr.height = allocation.height;
attr.wclass = GDK_INPUT_OUTPUT;
attr.visual = gdk_rgb_get_visual ();
attr.colormap = gdk_rgb_get_colormap ();
attr.visual = gtk_widget_get_visual (widget);
attr.colormap = gtk_widget_get_colormap (widget);
attr.event_mask = gtk_widget_get_events (widget) |
GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK |
GDK_POINTER_MOTION_MASK;