summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2007-01-07 23:37:47 +0000
committergustav_b <gustav_b@users.sourceforge.net>2007-01-07 23:37:47 +0000
commit89a2b072cb12a1669ea55ff2453f9b0138c33fab (patch)
treef13cf8fba207d7b46c1ce7ec1e1030848506c01f /src/display/sp-canvas.cpp
parentforce full redraw every 5 interruptions when dragging knots; disconnect knot ... (diff)
downloadinkscape-89a2b072cb12a1669ea55ff2453f9b0138c33fab.tar.gz
inkscape-89a2b072cb12a1669ea55ff2453f9b0138c33fab.zip
Fix for 1502439, annoying GTK warning: "Gtk-CRITICAL **: gtk_style_detach: assertion:style->"
(bzr r2152)
Diffstat (limited to 'src/display/sp-canvas.cpp')
-rw-r--r--src/display/sp-canvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index 3247a3e1f..bee5dfc3f 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -1091,6 +1091,8 @@ sp_canvas_realize (GtkWidget *widget)
if ( prefs_get_int_attribute ("options.useextinput", "value", 1) )
gtk_widget_set_events(widget, attributes.event_mask);
+ widget->style = gtk_style_attach (widget->style, widget->window);
+
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
canvas->pixmap_gc = gdk_gc_new (SP_CANVAS_WINDOW (canvas));