[librsvg/bilelmoussaoui/param-spec: 2/4] c-api: Drop usless blurb/nick from properties




commit b8e0be0fc45b8fdb398b1e98074986c6dc6c2586
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Sat Jul 23 09:18:42 2022 +0200

    c-api: Drop usless blurb/nick from properties
    
    Nothing uses those nowadays other
    than in gstreamer itself

 src/c_api/handle.rs | 80 ++++++++++-------------------------------------------
 1 file changed, 15 insertions(+), 65 deletions(-)
---
diff --git a/src/c_api/handle.rs b/src/c_api/handle.rs
index 9106f9da8..fb8324dfe 100644
--- a/src/c_api/handle.rs
+++ b/src/c_api/handle.rs
@@ -329,16 +329,16 @@ mod imp {
                 vec![
                     ParamSpecFlags::new(
                         "flags",
-                        "Flags",
-                        "Loading flags",
+                        "",
+                        "",
                         HandleFlags::static_type(),
                         0,
                         ParamFlags::READWRITE | ParamFlags::CONSTRUCT_ONLY,
                     ),
                     ParamSpecDouble::new(
                         "dpi-x",
-                        "Horizontal DPI",
-                        "Horizontal resolution in dots per inch",
+                        "",
+                        "",
                         0.0,
                         f64::MAX,
                         0.0,
@@ -346,8 +346,8 @@ mod imp {
                     ),
                     ParamSpecDouble::new(
                         "dpi-y",
-                        "Vertical DPI",
-                        "Vertical resolution in dots per inch",
+                        "",
+                        "",
                         0.0,
                         f64::MAX,
                         0.0,
@@ -355,68 +355,18 @@ mod imp {
                     ),
                     ParamSpecString::new(
                         "base-uri",
-                        "Base URI",
-                        "Base URI for resolving relative references",
+                        "",
+                        "",
                         None,
                         ParamFlags::READWRITE | ParamFlags::CONSTRUCT,
                     ),
-                    ParamSpecInt::new(
-                        "width",
-                        "Image width",
-                        "Image width",
-                        0,
-                        i32::MAX,
-                        0,
-                        ParamFlags::READABLE,
-                    ),
-                    ParamSpecInt::new(
-                        "height",
-                        "Image height",
-                        "Image height",
-                        0,
-                        i32::MAX,
-                        0,
-                        ParamFlags::READABLE,
-                    ),
-                    ParamSpecDouble::new(
-                        "em",
-                        "em",
-                        "em",
-                        0.0,
-                        f64::MAX,
-                        0.0,
-                        ParamFlags::READABLE,
-                    ),
-                    ParamSpecDouble::new(
-                        "ex",
-                        "ex",
-                        "ex",
-                        0.0,
-                        f64::MAX,
-                        0.0,
-                        ParamFlags::READABLE,
-                    ),
-                    ParamSpecString::new(
-                        "title",
-                        "deprecated",
-                        "deprecated",
-                        None,
-                        ParamFlags::READABLE,
-                    ),
-                    ParamSpecString::new(
-                        "desc",
-                        "deprecated",
-                        "deprecated",
-                        None,
-                        ParamFlags::READABLE,
-                    ),
-                    ParamSpecString::new(
-                        "metadata",
-                        "deprecated",
-                        "deprecated",
-                        None,
-                        ParamFlags::READABLE,
-                    ),
+                    ParamSpecInt::new("width", "", "", 0, i32::MAX, 0, ParamFlags::READABLE),
+                    ParamSpecInt::new("height", "", "", 0, i32::MAX, 0, ParamFlags::READABLE),
+                    ParamSpecDouble::new("em", "", "", 0.0, f64::MAX, 0.0, ParamFlags::READABLE),
+                    ParamSpecDouble::new("ex", "", "", 0.0, f64::MAX, 0.0, ParamFlags::READABLE),
+                    ParamSpecString::new("title", "", "", None, ParamFlags::READABLE),
+                    ParamSpecString::new("desc", "", "", None, ParamFlags::READABLE),
+                    ParamSpecString::new("metadata", "", "", None, ParamFlags::READABLE),
                 ]
             });
             PROPERTIES.as_ref()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]