From 168b536e82bf2cc0782e4dca9692d23200fc3a38 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 21 Oct 2010 02:01:32 +0200 Subject: e-map: Take colormap and visual from the widget No need to use magic visuals and colormaps anymore, we're all cairo these days. --- widgets/misc/e-map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c index ea5c0aabcf..d88e1698dc 100644 --- a/widgets/misc/e-map.c +++ b/widgets/misc/e-map.c @@ -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; -- cgit v1.2.3