From 8b5a13ebdf2b288d3f888a70e18d143039cb9b3f Mon Sep 17 00:00:00 2001 From: Hugo Rodrigues Date: Wed, 2 Aug 2006 21:31:59 +0000 Subject: Added skeleton files for other filter primitives' SP-objects. Added blur slider on fill/stroke dialog (uncomment on object-properties.cpp). (bzr r1542) --- src/desktop-style.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/desktop-style.cpp') 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 @@ -1009,6 +1009,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; } -- cgit v1.2.3