[gtk+] Add a deprecation mark to draw_insertion_cursor



commit f73ff748db32f1c3f71bdcb15c91f4197ed20305
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Feb 27 17:35:57 2012 +0100

    Add a deprecation mark to draw_insertion_cursor
    
    This function has been replaced with gtk_render_insertion_cursor, but we
    forgot to mark it as deprecated.

 gtk/gtkstylecontext.c |    1 +
 gtk/gtkstylecontext.h |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 0610d13..30fed71 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -4738,6 +4738,7 @@ gtk_render_insertion_cursor (GtkStyleContext *context,
  * but merely a convenience function for drawing the standard cursor shape.
  *
  * Since: 3.0
+ * Deprecated: 3.4: Use gtk_render_insertion_cursor() instead.
  */
 void
 gtk_draw_insertion_cursor (GtkWidget          *widget,
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index f431b4a..c985795 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -949,7 +949,7 @@ void        gtk_render_insertion_cursor
                                     PangoLayout         *layout,
                                     int                  index,
                                     PangoDirection       direction);
-
+GDK_DEPRECATED_IN_3_4
 void   gtk_draw_insertion_cursor    (GtkWidget          *widget,
                                      cairo_t            *cr,
                                      const GdkRectangle *location,



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