[evolution/rendering-cleanup: 92/97] e-map: Take colormap and visual from the widget
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/rendering-cleanup: 92/97] e-map: Take colormap and visual from the widget
- Date: Thu, 21 Oct 2010 09:51:46 +0000 (UTC)
commit 453f6fc1442828536c5556a6d194dc21f1114636
Author: Benjamin Otte <otte redhat com>
Date: Thu Oct 21 02:01:32 2010 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index ea5c0aa..d88e169 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]