diff --git a/ChangeLog b/ChangeLog index 4d1e62b2c5..5ae5596f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-05 Sven Neumann + + * libgimp/gimpaspectpreview.c + * libgimp/gimpzoompreview.c: added missing API docs. + 2005-10-05 Sven Neumann * plug-ins/script-fu/siod-wrapper.c: reverted changes to handling diff --git a/devel-docs/ChangeLog b/devel-docs/ChangeLog index 87b0e2239a..28822dfae0 100644 --- a/devel-docs/ChangeLog +++ b/devel-docs/ChangeLog @@ -1,3 +1,11 @@ +2005-10-05 Sven Neumann + + * libgimp/libgimp-docs.sgml + * libgimp/libgimp-sections.txt + * libgimp/tmpl/gimpgrid.sgml: added new Grid PDB API. + + * libgimp/tmpl/gimpzoompreview.sgml: updated. + 2005-09-30 Sven Neumann * libgimp/libgimp-sections.txt diff --git a/devel-docs/libgimp/libgimp-docs.sgml b/devel-docs/libgimp/libgimp-docs.sgml index 7dff8378e0..b247763772 100644 --- a/devel-docs/libgimp/libgimp-docs.sgml +++ b/devel-docs/libgimp/libgimp-docs.sgml @@ -51,6 +51,7 @@ + diff --git a/devel-docs/libgimp/libgimp-sections.txt b/devel-docs/libgimp/libgimp-sections.txt index d6d4c50c33..847cdd0b64 100644 --- a/devel-docs/libgimp/libgimp-sections.txt +++ b/devel-docs/libgimp/libgimp-sections.txt @@ -460,6 +460,20 @@ gimp_gradients_close_popup gimp_gradients_set_popup +
+gimpgrid +gimp_image_grid_get_spacing +gimp_image_grid_set_spacing +gimp_image_grid_get_offset +gimp_image_grid_set_offset +gimp_image_grid_get_foreground_color +gimp_image_grid_set_foreground_color +gimp_image_grid_get_background_color +gimp_image_grid_set_background_color +gimp_image_grid_get_style +gimp_image_grid_set_style +
+
gimpguides gimp_image_add_hguide @@ -903,6 +917,7 @@ GimpZoomPreview gimp_zoom_preview_new gimp_zoom_preview_get_source gimp_zoom_preview_get_drawable +gimp_zoom_preview_get_factor GimpZoomPreviewClass GIMP_ZOOM_PREVIEW diff --git a/devel-docs/libgimp/tmpl/gimpgrid.sgml b/devel-docs/libgimp/tmpl/gimpgrid.sgml new file mode 100644 index 0000000000..ae23263b4e --- /dev/null +++ b/devel-docs/libgimp/tmpl/gimpgrid.sgml @@ -0,0 +1,124 @@ + +gimpgrid + + + + + + + + + + + + + + + + + + + + + + + + +@image_ID: +@xspacing: +@yspacing: +@Returns: + + + + + + + +@image_ID: +@xspacing: +@yspacing: +@Returns: + + + + + + + +@image_ID: +@xoffset: +@yoffset: +@Returns: + + + + + + + +@image_ID: +@xoffset: +@yoffset: +@Returns: + + + + + + + +@image_ID: +@fgcolor: +@Returns: + + + + + + + +@image_ID: +@fgcolor: +@Returns: + + + + + + + +@image_ID: +@bgcolor: +@Returns: + + + + + + + +@image_ID: +@bgcolor: +@Returns: + + + + + + + +@image_ID: +@Returns: + + + + + + + +@image_ID: +@style: +@Returns: + + diff --git a/devel-docs/libgimp/tmpl/gimpzoompreview.sgml b/devel-docs/libgimp/tmpl/gimpzoompreview.sgml index 27557a35b1..be7f6c8b1c 100644 --- a/devel-docs/libgimp/tmpl/gimpzoompreview.sgml +++ b/devel-docs/libgimp/tmpl/gimpzoompreview.sgml @@ -53,3 +53,12 @@ GimpZoomPreview @Returns: + + + + + +@preview: +@Returns: + + diff --git a/libgimp/gimpaspectpreview.c b/libgimp/gimpaspectpreview.c index ceb8bb77da..d2192d1c9b 100644 --- a/libgimp/gimpaspectpreview.c +++ b/libgimp/gimpaspectpreview.c @@ -201,6 +201,17 @@ gimp_aspect_preview_notify_update (GimpPreview *preview, *toggle = gimp_preview_get_update (preview); } +/** + * gimp_aspect_preview_new: + * @drawable: a #GimpDrawable + * @toggle: pointer to a #gboolean variable to sync with the "Preview" + * check-button or %NULL + * + * Creates a new #GimpAspectPreview widget for @drawable. See also + * gimp_drawable_preview_new(). + * + * Since: GIMP 2.2 + **/ GtkWidget * gimp_aspect_preview_new (GimpDrawable *drawable, gboolean *toggle) diff --git a/libgimp/gimpzoompreview.c b/libgimp/gimpzoompreview.c index 4d3a714735..904660d3b5 100644 --- a/libgimp/gimpzoompreview.c +++ b/libgimp/gimpzoompreview.c @@ -455,6 +455,14 @@ gimp_zoom_preview_get_bounds (GimpDrawable *drawable, return retval; } +/** + * gimp_zoom_preview_new: + * @drawable: a #GimpDrawable + * + * Creates a new #GimpZoomPreview widget for @drawable. + * + * Since: GIMP 2.4 + **/ GtkWidget * gimp_zoom_preview_new (GimpDrawable *drawable) { @@ -464,9 +472,11 @@ gimp_zoom_preview_new (GimpDrawable *drawable) GimpZoomPreviewPrivate *priv; preview = g_object_new (GIMP_TYPE_ZOOM_PREVIEW, NULL); + priv = GIMP_ZOOM_PREVIEW_GET_PRIVATE (preview); priv->drawable = drawable; + width = gimp_drawable_width (drawable->drawable_id); height = gimp_drawable_height (drawable->drawable_id); @@ -497,6 +507,14 @@ gimp_zoom_preview_new (GimpDrawable *drawable) return GTK_WIDGET (preview); } +/** + * gimp_zoom_get_drawable: + * @preview: a #GimpZoomPreview widget + * + * Return Value: the #GimpDrawable that was passed to gimp_zoom_preview_new(). + * + * Since: GIMP 2.4 + **/ GimpDrawable * gimp_zoom_preview_get_drawable (GimpZoomPreview *preview) { @@ -505,6 +523,14 @@ gimp_zoom_preview_get_drawable (GimpZoomPreview *preview) return priv->drawable; } +/** + * gimp_zoom_get_factor: + * @preview: a #GimpZoomPreview widget + * + * Return Value: the current zoom factor + * + * Since: GIMP 2.4 + **/ gdouble gimp_zoom_preview_get_factor (GimpZoomPreview *preview) {