diff options
| author | Hugo Rodrigues <me@hugorodrigues.com> | 2006-08-02 21:31:59 +0000 |
|---|---|---|
| committer | haa_rodrigues <haa_rodrigues@users.sourceforge.net> | 2006-08-02 21:31:59 +0000 |
| commit | 8b5a13ebdf2b288d3f888a70e18d143039cb9b3f (patch) | |
| tree | f3cbff6eadac212f95620dfdcdf445e2f91ee106 /src/desktop-style.cpp | |
| parent | refactored session establishment (diff) | |
| download | inkscape-8b5a13ebdf2b288d3f888a70e18d143039cb9b3f.tar.gz inkscape-8b5a13ebdf2b288d3f888a70e18d143039cb9b3f.zip | |
Added skeleton files for other filter primitives' SP-objects. Added blur slider on fill/stroke dialog (uncomment on object-properties.cpp).
(bzr r1542)
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index c9989df27..ff96f7e8e 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -1010,6 +1010,18 @@ objects_query_fontfamily (GSList *objects, SPStyle *style_res) } /** + * Write to style_res the average opacity of a list of objects. + */ +int +objects_query_blur (GSList *objects, SPStyle *style_res) +{ + /*************temporary**********/ + //style_res->opacity.value = SP_SCALE24_FROM_FLOAT(0.5); + return QUERY_STYLE_MULTIPLE_SAME; + /*************temporary**********/ +} + +/** * Query the given list of objects for the given property, write * the result to style, return appropriate flag. */ @@ -1039,8 +1051,10 @@ sp_desktop_query_style_from_list (GSList *list, SPStyle *style, int property) return objects_query_fontstyle (list, style); } else if (property == QUERY_STYLE_PROPERTY_FONTNUMBERS) { return objects_query_fontnumbers (list, style); - } + } else if (property == QUERY_STYLE_PROPERTY_BLUR) { + return objects_query_blur (list, style); + } return QUERY_STYLE_NOTHING; } |
