[gnome-system-tools] Use GdkVisual instead of GdkColormap in EMap widget
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Use GdkVisual instead of GdkColormap in EMap widget
- Date: Sun, 12 Dec 2010 17:46:04 +0000 (UTC)
commit 718c565d04357b2bed217619a6072f08f985b485
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sun Dec 12 13:12:42 2010 +0100
Use GdkVisual instead of GdkColormap in EMap widget
GdkColormap no longer exists in GTK3.
src/time/e-map/e-map.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index 5ff0b64..fb5134b 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -468,12 +468,11 @@ e_map_realize (GtkWidget *widget)
attr.height = allocation.height;
attr.wclass = GDK_INPUT_OUTPUT;
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;
- attr_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+ attr_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
window = gdk_window_new (
gtk_widget_get_parent_window (widget), &attr, attr_mask);
@@ -484,7 +483,6 @@ e_map_realize (GtkWidget *widget)
style = gtk_style_attach (style, window);
gtk_widget_set_style (widget, style);
- gdk_window_set_back_pixmap (window, NULL, FALSE);
update_render_surface (E_MAP (widget), TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]