[gtksourceview/gtksourcecompletion] Use GtkSourceView instead of GtkTextView in API



commit d6d266bf56c75bdee368329cfebe5b30bfce3d79
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Apr 19 13:05:09 2009 +0200

    Use GtkSourceView instead of GtkTextView in API
---
 gtksourceview/gtksourcecompletion-private.h |    3 +--
 gtksourceview/gtksourcecompletion.c         |    2 +-
 gtksourceview/gtksourceview.c               |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gtksourceview/gtksourcecompletion-private.h b/gtksourceview/gtksourcecompletion-private.h
index 9e253df..9f48705 100644
--- a/gtksourceview/gtksourcecompletion-private.h
+++ b/gtksourceview/gtksourcecompletion-private.h
@@ -26,8 +26,7 @@
 #include <gtk/gtk.h>
 #include <gtksourceview/gtksourcecompletion.h>
 
-/* Use GtkTextView here to avoid cyclic dependency */
-GtkSourceCompletion *gtk_source_completion_new (GtkTextView *text_view);
+GtkSourceCompletion *gtk_source_completion_new (struct _GtkSourceView *source_view);
 
 #endif /* __GTK_SOURCE_COMPLETION_PIVATE_H__ */
 
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 054032f..0e2efc4 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2017,7 +2017,7 @@ gtk_source_completion_popup (GtkSourceCompletion *completion,
  * Returns: The new #GtkSourceCompletion
  */
 GtkSourceCompletion *
-gtk_source_completion_new (GtkTextView *view)
+gtk_source_completion_new (GtkSourceView *view)
 {
 	g_return_val_if_fail (GTK_IS_SOURCE_VIEW (view), NULL);
 
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index fe8c8c6..6e59e72 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4079,7 +4079,7 @@ gtk_source_view_get_completion (GtkSourceView *view)
 	
 	if (view->priv->completion == NULL)
 	{
-		view->priv->completion = gtk_source_completion_new (GTK_TEXT_VIEW (view));
+		view->priv->completion = gtk_source_completion_new (view);
 	}
 	
 	return view->priv->completion;



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