aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-map.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-21 08:01:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:04 +0800
commit168b536e82bf2cc0782e4dca9692d23200fc3a38 (patch)
treef5a4b8bdf3e5ac5ba57372ca2c9cb9b093f158a4 /widgets/misc/e-map.c
parent200df519f19c1bf9c2d7596919d542c3856f3020 (diff)
downloadgsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.tar
gsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.tar.gz
gsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.tar.bz2
gsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.tar.lz
gsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.tar.xz
gsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.tar.zst
gsoc2013-evolution-168b536e82bf2cc0782e4dca9692d23200fc3a38.zip
e-map: Take colormap and visual from the widget
No need to use magic visuals and colormaps anymore, we're all cairo these days.
Diffstat (limited to 'widgets/misc/e-map.c')
-rw-r--r--widgets/misc/e-map.c4
1 files changed, 2 insertions, 2 deletions
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;