From b959fcf57e91d740f7e617e3fdacb771069e0faf Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 26 Oct 2006 06:58:34 +0000 Subject: workaround for crash 1580903 and several other issues caused by GTK's braindead behavior exposed by display interruptibility (bzr r1866) --- src/dialogs/fill-style.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dialogs/fill-style.cpp') diff --git a/src/dialogs/fill-style.cpp b/src/dialogs/fill-style.cpp index 22c1ee0f7..9933887f3 100644 --- a/src/dialogs/fill-style.cpp +++ b/src/dialogs/fill-style.cpp @@ -35,6 +35,7 @@ #include #include #include +#include // These can be deleted once we sort out the libart dependence. @@ -396,9 +397,14 @@ sp_fill_style_widget_paint_changed ( SPPaintSelector *psel, case SP_PAINT_SELECTOR_MODE_COLOR_RGB: case SP_PAINT_SELECTOR_MODE_COLOR_CMYK: { + // FIXME: fix for GTK breakage, see comment in SelectedStyle::on_opacity_changed; here it results in losing release events + sp_canvas_force_full_redraw_after_interruptions(sp_desktop_canvas(desktop), 0); + sp_paint_selector_set_flat_color (psel, desktop, "fill", "fill-opacity"); sp_document_maybe_done (sp_desktop_document(desktop), undo_label, SP_VERB_DIALOG_FILL_STROKE, _("Set fill color")); + // resume interruptibility + sp_canvas_end_forced_full_redraws(sp_desktop_canvas(desktop)); // on release, toggle undo_label so that the next drag will not be lumped with this one if (undo_label == undo_label_1) -- cgit v1.2.3