[gtksourceview] Deprecate gtk_source_completion_move_window()



commit 07c4dd62c1e3cbb95fb92a94d13b0e5a3c0849bf
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Sat Jan 26 15:06:10 2013 +0100

    Deprecate gtk_source_completion_move_window()
    
    The window is already moved automatically with
    gtk_source_completion_provider_get_start_iter().
    
    When generating the documentation, there is a warning:
     warning: gtk_source_completion_move_window is deprecated in the inline
     comments, but no deprecation guards were found around
     the declaration. (See the --deprecated-guards option for
     gtkdoc-scan.)
    
    But it's normal, it's a bug in gtk-doc (bug #624001):
    https://bugzilla.gnome.org/show_bug.cgi?id=624001

 gtksourceview/gtksourcecompletion.c |    2 ++
 gtksourceview/gtksourcecompletion.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 0bbbe42..33737f9 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -3544,6 +3544,8 @@ gtk_source_completion_create_context (GtkSourceCompletion *completion,
  * @iter: a #GtkTextIter.
  *
  * Move the completion window to a specific iter.
+ *
+ * Deprecated: 3.8: Use gtk_source_completion_provider_get_start_iter() instead.
  */
 void
 gtk_source_completion_move_window (GtkSourceCompletion *completion,
diff --git a/gtksourceview/gtksourcecompletion.h b/gtksourceview/gtksourcecompletion.h
index dec8c7f..86dd543 100644
--- a/gtksourceview/gtksourcecompletion.h
+++ b/gtksourceview/gtksourcecompletion.h
@@ -124,6 +124,7 @@ GtkSourceCompletionContext *
 		 gtk_source_completion_create_context		(GtkSourceCompletion           *completion,
 		 						 GtkTextIter                   *position);
 
+G_DEPRECATED_FOR (gtk_source_completion_provider_get_start_iter)
 void		 gtk_source_completion_move_window		(GtkSourceCompletion           *completion,
 								 GtkTextIter                   *iter);
 



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