[evolution] e-map: Take colormap and visual from the widget
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-map: Take colormap and visual from the widget
- Date: Fri, 29 Oct 2010 18:40:59 +0000 (UTC)
commit 168b536e82bf2cc0782e4dca9692d23200fc3a38
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]