summaryrefslogtreecommitdiffstats
path: root/src/widgets/ruler.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-05-06 16:57:41 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-05-06 16:57:41 +0000
commit3f2ccd168fd29eb747cd748b859886514f51e888 (patch)
treeb4e356f471a2ef7787972b26a33df271328fb546 /src/widgets/ruler.cpp
parentUse cairo surface for ruler backing store in gtk3 (diff)
downloadinkscape-3f2ccd168fd29eb747cd748b859886514f51e888.tar.gz
inkscape-3f2ccd168fd29eb747cd748b859886514f51e888.zip
Don't set colormap in ruler
(bzr r11334)
Diffstat (limited to 'src/widgets/ruler.cpp')
-rw-r--r--src/widgets/ruler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widgets/ruler.cpp b/src/widgets/ruler.cpp
index 05fbcd9f9..729c5199c 100644
--- a/src/widgets/ruler.cpp
+++ b/src/widgets/ruler.cpp
@@ -452,13 +452,12 @@ sp_ruler_realize (GtkWidget *widget)
attributes.height = allocation.height;
attributes.wclass = GDK_INPUT_OUTPUT;
attributes.visual = gtk_widget_get_visual (widget);
- attributes.colormap = gtk_widget_get_colormap (widget);
attributes.event_mask = gtk_widget_get_events (widget);
attributes.event_mask |= (GDK_EXPOSURE_MASK |
GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK);
- attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+ attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
window = gdk_window_new(gtk_widget_get_parent_window (widget),
&attributes, attributes_mask);