From 10f55ededa291836ef120c831eac52d698440fbb Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Wed, 11 Jan 2012 17:59:22 -0800 Subject: Initial C++ification of SPCanvas. (bzr r10873) --- src/ui/widget/selected-style.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/widget/selected-style.cpp') diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index afbb52e05..40dbbc962 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -2,6 +2,7 @@ * Author: * buliabyak@gmail.com * Abhishek Sharma + * Jon A. Cruz * * Copyright (C) 2005 author * @@ -1150,13 +1151,13 @@ void SelectedStyle::on_opacity_changed () { // me. As a result, scrolling the spinbutton once results in runaway change until it hits 1.0 // or 0.0. (And no, this is not a race with ::update, I checked that.) // Sigh. So we disable interruptibility while we're setting the new value. - sp_canvas_force_full_redraw_after_interruptions(sp_desktop_canvas(_desktop), 0); + sp_desktop_canvas(_desktop)->forceFullRedrawAfterInterruptions(0); sp_desktop_set_style (_desktop, css); sp_repr_css_attr_unref (css); DocumentUndo::maybeDone(sp_desktop_document(_desktop), "fillstroke:opacity", SP_VERB_DIALOG_FILL_STROKE, _("Change opacity")); // resume interruptibility - sp_canvas_end_forced_full_redraws(sp_desktop_canvas(_desktop)); + sp_desktop_canvas(_desktop)->endForcedFullRedraws(); spinbutton_defocus(GTK_OBJECT(_opacity_sb.gobj())); _opacity_blocked = false; } -- cgit v1.2.3