[librsvg: 8/23] Fix docstrings for properties




commit a4aa3157ce16d2fc15888d4ceffe31c946ec8b20
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Jan 6 14:18:51 2022 -0600

    Fix docstrings for properties
    
    Single colons (RsvgHandle:flags instead of RsvgHandle::flags), and add
    an attribute for the base-uri getter/setter.
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/650>

 include/librsvg/rsvg.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/include/librsvg/rsvg.h b/include/librsvg/rsvg.h
index 94baa9e19..b660a4056 100644
--- a/include/librsvg/rsvg.h
+++ b/include/librsvg/rsvg.h
@@ -250,19 +250,19 @@ GType rsvg_error_get_type (void);
  */
 
 /**
- * RsvgHandle::dpi-x:
+ * RsvgHandle:dpi-x:
  *
  * Horizontal resolution in dots per inch.
  */
 
 /**
- * RsvgHandle::dpi-y:
+ * RsvgHandle:dpi-y:
  *
  * Horizontal resolution in dots per inch.
  */
 
 /**
- * RsvgHandle::base-uri:
+ * RsvgHandle:base-uri: (attributes org.gtk.Property.get=rsvg_handle_get_base_uri 
org.gtk.Property.set=rsvg_handle_set_base_uri)
  *
  * Base URI, to be used to resolve relative references for resources.  See the section
  * "Security and locations of referenced files" for details.
@@ -657,7 +657,7 @@ RSVG_API
 GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
 
 /**
- * rsvg_handle_get_base_uri:
+ * rsvg_handle_get_base_uri: (attributes org.gtk.Method.get_property=base-uri)
  * @handle: A #RsvgHandle
  *
  * Gets the base uri for this #RsvgHandle.
@@ -669,7 +669,7 @@ RSVG_API
 const char *rsvg_handle_get_base_uri (RsvgHandle *handle);
 
 /**
- * rsvg_handle_set_base_uri:
+ * rsvg_handle_set_base_uri: (attributes org.gtk.Method.set_property=base-uri)
  * @handle: A `RsvgHandle`
  * @base_uri: The base uri
  *


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