summaryrefslogtreecommitdiffstats
path: root/src/widgets/select-toolbar.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-11-12 01:57:04 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-11-12 01:57:04 +0000
commit874773b9736f0e20b2b3a3d81a7c90da68dc8f0d (patch)
tree9f135afd6c6257152bac79086b635092184b3a81 /src/widgets/select-toolbar.cpp
parentAdded oops... (diff)
downloadinkscape-874773b9736f0e20b2b3a3d81a7c90da68dc8f0d.tar.gz
inkscape-874773b9736f0e20b2b3a3d81a7c90da68dc8f0d.zip
ok, fix another crash caused by GTK's broken spinbuttons
(bzr r1937)
Diffstat (limited to 'src/widgets/select-toolbar.cpp')
-rw-r--r--src/widgets/select-toolbar.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp
index c1a92aa76..ebdc267c1 100644
--- a/src/widgets/select-toolbar.cpp
+++ b/src/widgets/select-toolbar.cpp
@@ -42,7 +42,7 @@
#include "selection-chemistry.h"
#include "sp-item-transform.h"
#include "message-stack.h"
-
+#include "display/sp-canvas.h"
static void
sp_selection_layout_widget_update(SPWidget *spw, Inkscape::Selection *sel)
@@ -213,6 +213,10 @@ sp_object_layout_any_value_changed(GtkAdjustment *adj, SPWidget *spw)
sv > 5e-4 ? "selector:toolbar:scale:vertical" : NULL );
if (actionkey != NULL) {
+
+ // FIXME: fix for GTK breakage, see comment in SelectedStyle::on_opacity_changed
+ sp_canvas_force_full_redraw_after_interruptions(sp_desktop_canvas(desktop), 0);
+
gdouble strokewidth = stroke_average_width (selection->itemList());
int transform_stroke = prefs_get_int_attribute ("options.transform", "stroke", 1);
@@ -224,6 +228,9 @@ sp_object_layout_any_value_changed(GtkAdjustment *adj, SPWidget *spw)
// defocus spinbuttons by moving focus to the canvas, unless "stay" is on
spinbutton_defocus(GTK_OBJECT(spw));
+
+ // resume interruptibility
+ sp_canvas_end_forced_full_redraws(sp_desktop_canvas(desktop));
}
gtk_object_set_data(GTK_OBJECT(spw), "update", GINT_TO_POINTER(FALSE));