summaryrefslogtreecommitdiffstats
path: root/src/desktop-style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop-style.cpp')
-rw-r--r--src/desktop-style.cpp16
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;
}