summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkdraw.c6
-rw-r--r--gdk/gdkpango.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c
index b9062caadd..ae8bb124f1 100644
--- a/gdk/gdkdraw.c
+++ b/gdk/gdkdraw.c
@@ -519,6 +519,8 @@ gdk_draw_polygon (GdkDrawable *drawable,
* @string: the string of characters to draw.
*
* Draws a string of characters in the given font or fontset.
+ *
+ * Deprecated: Use gdk_draw_layout() instead.
**/
void
gdk_draw_string (GdkDrawable *drawable,
@@ -548,6 +550,8 @@ gdk_draw_string (GdkDrawable *drawable,
* @text_length: the number of characters of @text to draw.
*
* Draws a number of characters in the given font or fontset.
+ *
+ * Deprecated: Use gdk_draw_layout() instead.
**/
void
gdk_draw_text (GdkDrawable *drawable,
@@ -579,6 +583,8 @@ gdk_draw_text (GdkDrawable *drawable,
* Draws a number of wide characters using the given font of fontset.
* If the font is a 1-byte font, the string is converted into 1-byte
* characters (discarding the high bytes) before output.
+ *
+ * Deprecated: Use gdk_draw_layout() instead.
**/
void
gdk_draw_text_wc (GdkDrawable *drawable,
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index db0c871359..0f24309d36 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -134,11 +134,11 @@ gdk_pango_free_gc (PangoContext *context,
* @colormap: a #GdkColormap
*
* Sets the colormap to be used for drawing with @context.
+ *
* If you obtained your context from gtk_widget_get_pango_context() or
* gtk_widget_create_pango_context(), the colormap will already be set
* to the colormap for the widget, so you shouldn't need this
* function.
- *
**/
void
gdk_pango_context_set_colormap (PangoContext *context,
@@ -441,6 +441,9 @@ gdk_draw_layout_line_with_colors (GdkDrawable *drawable,
* Render a #PangoLayout onto a #GdkDrawable, overriding the
* layout's normal colors with @foreground and/or @background.
* @foreground and @background need not be allocated.
+ *
+ * If you're using GTK+, the ususal way to obtain a #PangoLayout
+ * is gtk_widget_create_pango_layout().
*/
void
gdk_draw_layout_with_colors (GdkDrawable *drawable,
@@ -515,6 +518,9 @@ gdk_draw_layout_line (GdkDrawable *drawable,
* @layout: a #PangoLayout
*
* Render a #PangoLayout onto a GDK drawable
+ *
+ * If you're using GTK+, the ususal way to obtain a #PangoLayout
+ * is gtk_widget_create_pango_layout().
*/
void
gdk_draw_layout (GdkDrawable *drawable,