[goocanvas] Added introspection info for new functions and "Since:" tags for new API
- From: Damon Chaplin <damon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas] Added introspection info for new functions and "Since:" tags for new API
- Date: Sat, 1 Oct 2011 15:26:42 +0000 (UTC)
commit b2aee123fc841c9625de8f12c31523531bf18932
Author: Damon Chaplin <damon gnome org>
Date: Sat Oct 1 16:26:39 2011 +0100
Added introspection info for new functions and "Since:" tags for new API
src/goocanvas.c | 17 +++++++++++++----
src/goocanvasgrid.c | 21 +++++++++++++++++++++
src/goocanvasitem.c | 2 ++
src/goocanvasitemsimple.c | 14 ++++++++++++++
4 files changed, 50 insertions(+), 4 deletions(-)
---
diff --git a/src/goocanvas.c b/src/goocanvas.c
index 44f3276..8381e2b 100644
--- a/src/goocanvas.c
+++ b/src/goocanvas.c
@@ -419,6 +419,13 @@ goo_canvas_class_init (GooCanvasClass *klass)
0, G_MAXUINT, 0,
G_PARAM_WRITABLE));
+ /**
+ * GooCanvas:background-color-gdk-rgba
+ *
+ * The color to use for the canvas background, specified as a GdkRGBA.
+ *
+ * Since: 2.0.1
+ */
g_object_class_install_property (gobject_class, PROP_BACKGROUND_COLOR_GDK_RGBA,
g_param_spec_boxed ("background-color-gdk-rgba",
_("Background Color GdkRGBA"),
@@ -3677,13 +3684,14 @@ goo_canvas_convert_from_pixels (GooCanvas *canvas,
/**
* goo_canvas_convert_units_to_pixels:
* @canvas: a #GooCanvas.
- * @x: a pointer to the x coordinate to convert.
- * @y: a pointer to the y coordinate to convert.
+ * @x: (inout): a pointer to the x coordinate to convert.
+ * @y: (inout): a pointer to the y coordinate to convert.
*
* Converts a coordinate from the canvas's units to pixels,
* ignoring scaling and ignoring the coordinate space specified
* in the call to goo_canvas_set_bounds().
*
+ * Since: 2.0.1
**/
void
goo_canvas_convert_units_to_pixels (GooCanvas *canvas,
@@ -3702,13 +3710,14 @@ goo_canvas_convert_units_to_pixels (GooCanvas *canvas,
/**
* goo_canvas_convert_units_from_pixels:
* @canvas: a #GooCanvas.
- * @x: a pointer to the x coordinate to convert.
- * @y: a pointer to the y coordinate to convert.
+ * @x: (inout): a pointer to the x coordinate to convert.
+ * @y: (inout): a pointer to the y coordinate to convert.
*
* Converts a coordinate from pixels to the canvas's units,
* ignoring scaling and ignoring the coordinate space specified
* in the call to goo_canvas_set_bounds().
*
+ * Since: 2.0.1
**/
void
goo_canvas_convert_units_from_pixels (GooCanvas *canvas,
diff --git a/src/goocanvasgrid.c b/src/goocanvasgrid.c
index 8e145f0..5fa72ec 100644
--- a/src/goocanvasgrid.c
+++ b/src/goocanvasgrid.c
@@ -246,6 +246,13 @@ goo_canvas_grid_install_common_properties (GObjectClass *gobject_class)
0, G_MAXUINT, 0,
G_PARAM_READWRITE));
+ /**
+ * GooCanvasGrid:horz-grid-line-color-gdk-rgba
+ *
+ * The color to use for the horizontal grid lines, specified as a GdkRGBA.
+ *
+ * Since: 2.0.1
+ */
g_object_class_install_property (gobject_class, PROP_HORZ_GRID_LINE_COLOR_GDK_RGBA,
g_param_spec_boxed ("horz-grid-line-color-gdk-rgba",
_("Horizontal Grid Line Color GdkRGBA"),
@@ -274,6 +281,13 @@ goo_canvas_grid_install_common_properties (GObjectClass *gobject_class)
0, G_MAXUINT, 0,
G_PARAM_READWRITE));
+ /**
+ * GooCanvasGrid:vert-grid-line-color-gdk-rgba
+ *
+ * The color to use for the vertical grid lines, specified as a GdkRGBA.
+ *
+ * Since: 2.0.1
+ */
g_object_class_install_property (gobject_class, PROP_VERT_GRID_LINE_COLOR_GDK_RGBA,
g_param_spec_boxed ("vert-grid-line-color-gdk-rgba",
_("Vertical Grid Line Color GdkRGBA"),
@@ -302,6 +316,13 @@ goo_canvas_grid_install_common_properties (GObjectClass *gobject_class)
0, G_MAXUINT, 0,
G_PARAM_READWRITE));
+ /**
+ * GooCanvasGrid:border-color-gdk-rgba
+ *
+ * The color to use for the border, specified as a GdkRGBA.
+ *
+ * Since: 2.0.1
+ */
g_object_class_install_property (gobject_class, PROP_BORDER_COLOR_GDK_RGBA,
g_param_spec_boxed ("border-color-gdk-rgba",
_("Border Color GdkRGBA"),
diff --git a/src/goocanvasitem.c b/src/goocanvasitem.c
index 52e22cd..a766516 100644
--- a/src/goocanvasitem.c
+++ b/src/goocanvasitem.c
@@ -1769,6 +1769,8 @@ goo_canvas_item_get_requested_area (GooCanvasItem *item,
*
* Returns: %TRUE if the item's requested area changes due to the new allocated
* width.
+ *
+ * Since: 2.0.1
**/
gboolean
goo_canvas_item_get_requested_area_for_width (GooCanvasItem *item,
diff --git a/src/goocanvasitemsimple.c b/src/goocanvasitemsimple.c
index d46c552..3603ea1 100644
--- a/src/goocanvasitemsimple.c
+++ b/src/goocanvasitemsimple.c
@@ -237,6 +237,13 @@ goo_canvas_item_simple_install_common_properties (GObjectClass *gobject_class)
0, G_MAXUINT, 0,
G_PARAM_READWRITE));
+ /**
+ * GooCanvasItemSimple:stroke-color-gdk-rgba
+ *
+ * The color to use for the item's perimeter, specified as a GdkRGBA. To disable painting set the 'stroke-pattern' property to NULL.
+ *
+ * Since: 2.0.1
+ */
g_object_class_install_property (gobject_class, PROP_STROKE_COLOR_GDK_RGBA,
g_param_spec_boxed ("stroke-color-gdk-rgba",
_("Stroke Color GdkRGBA"),
@@ -265,6 +272,13 @@ goo_canvas_item_simple_install_common_properties (GObjectClass *gobject_class)
0, G_MAXUINT, 0,
G_PARAM_READWRITE));
+ /**
+ * GooCanvasItemSimple:fill-color-gdk-rgba
+ *
+ * The color to use to paint the interior of the item, specified as a GdkRGBA. To disable painting set the 'fill-pattern' property to NULL.
+ *
+ * Since: 2.0.1
+ */
g_object_class_install_property (gobject_class, PROP_FILL_COLOR_GDK_RGBA,
g_param_spec_boxed ("fill-color-gdk-rgba",
_("Fill Color GdkRGBA"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]