From 2e9b5b8bebb1f2dfa627525f9532dd2035b6ef2a Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 12 Nov 2006 01:57:04 +0000 Subject: [PATCH] ok, fix another crash caused by GTK's broken spinbuttons --- src/widgets/select-toolbar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)); -- 2.30.2