fixed gtk-doc comments; added G_GNUC_PRINTF attribute.

2005-03-23  Sven Neumann  <sven@gimp.org>

	* app/display/gimpcanvas.[ch] (gimp_canvas_draw_text): fixed
	gtk-doc comments; added G_GNUC_PRINTF attribute.
This commit is contained in:
Sven Neumann 2005-03-23 13:53:31 +00:00 committed by Sven Neumann
parent e243c26985
commit f579c11f3b
3 changed files with 14 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2005-03-23 Sven Neumann <sven@gimp.org>
* app/display/gimpcanvas.[ch] (gimp_canvas_draw_text): fixed
gtk-doc comments; added G_GNUC_PRINTF attribute.
2005-03-23 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpselectiondata.c (gimp_selection_data_get_image)

View file

@ -643,11 +643,12 @@ gimp_canvas_draw_segments (GimpCanvas *canvas,
/**
* gimp_canvas_draw_text:
* @canvas: a #GimpCanvas widget
* @style: one of the enumerated #GimpCanvasStyle's.
* @x: X coordinate of the left edge of the layout.
* @y: Y coordinate of the top edge of the layout.
* @layout: a #PangoLayout object.
* @canvas: a #GimpCanvas widget
* @style: one of the enumerated #GimpCanvasStyle's.
* @x: X coordinate of the left of the layout.
* @y: Y coordinate of the top of the layout.
* @format: a standard printf() format string.
* @Varargs: the parameters to insert into the format string.
*
* Draws a layout, in the specified style.
**/
@ -666,10 +667,8 @@ gimp_canvas_draw_text (GimpCanvas *canvas,
return;
if (! canvas->layout)
{
canvas->layout = gtk_widget_create_pango_layout (GTK_WIDGET (canvas),
NULL);
}
canvas->layout = gtk_widget_create_pango_layout (GTK_WIDGET (canvas),
NULL);
va_start (args, format);
text = g_strdup_vprintf (format, args);

View file

@ -125,7 +125,7 @@ void gimp_canvas_draw_text (GimpCanvas *canvas,
gint x,
gint y,
const gchar *format,
...);
...) G_GNUC_PRINTF (5, 6);
void gimp_canvas_draw_rgb (GimpCanvas *canvas,
GimpCanvasStyle style,
gint x,