Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_event_context_read ( SPEventContext ec,
gchar const *  key 
)

Calls virtual set() function of SPEventContext.

Definition at line 852 of file event-context.cpp.

Referenced by sp_pen_context_setup().

{
    g_return_if_fail(ec != NULL);
    g_return_if_fail(SP_IS_EVENT_CONTEXT(ec));
    g_return_if_fail(key != NULL);

    if (((SPEventContextClass *) G_OBJECT_GET_CLASS(ec))->set) {
        Inkscape::Preferences *prefs = Inkscape::Preferences::get();
        Inkscape::Preferences::Entry val = prefs->getEntry(
            ec->pref_observer->observed_path + '/' + key );
        ((SPEventContextClass *) G_OBJECT_GET_CLASS(ec))->set(ec, &val);
    }
}


Generated by  Doxygen 1.6.0   Back to index