[gtksourceview] Better parameter type for gtk_source_completion_context_add_proposals()
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Better parameter type for gtk_source_completion_context_add_proposals()
- Date: Tue, 14 Aug 2012 22:08:18 +0000 (UTC)
commit 93ff94adbd4136f738a998500144d5952819e6a6
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Tue Aug 14 01:12:38 2012 +0200
Better parameter type for gtk_source_completion_context_add_proposals()
Here the cycle was between completionprovider.h and completioncontext.h.
gtksourceview/gtksourcecompletion-private.h | 3 +++
gtksourceview/gtksourcecompletioncontext.h | 5 +----
gtksourceview/gtksourcecompletionprovider.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion-private.h b/gtksourceview/gtksourcecompletion-private.h
index fec41fd..4927e36 100644
--- a/gtksourceview/gtksourcecompletion-private.h
+++ b/gtksourceview/gtksourcecompletion-private.h
@@ -27,6 +27,9 @@
/* Break the cycle between gtksourceview.h and gtksourcecompletion.h */
typedef struct _GtkSourceCompletion GtkSourceCompletion;
+/* Break the cycle between completionprovider.h and completioncontext.h */
+typedef struct _GtkSourceCompletionProvider GtkSourceCompletionProvider;
+
/* Forward declaration */
struct _GtkSourceView;
diff --git a/gtksourceview/gtksourcecompletioncontext.h b/gtksourceview/gtksourcecompletioncontext.h
index e86617c..2d073ff 100644
--- a/gtksourceview/gtksourcecompletioncontext.h
+++ b/gtksourceview/gtksourcecompletioncontext.h
@@ -54,9 +54,6 @@ typedef enum
GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED = 1 << 1
} GtkSourceCompletionActivation;
-/* Forward declaration */
-struct _GtkSourceCompletionProvider;
-
struct _GtkSourceCompletionContext {
GInitiallyUnowned parent;
@@ -77,7 +74,7 @@ struct _GtkSourceCompletionContextClass {
GType gtk_source_completion_context_get_type (void) G_GNUC_CONST;
void gtk_source_completion_context_add_proposals (GtkSourceCompletionContext *context,
- struct _GtkSourceCompletionProvider *provider,
+ GtkSourceCompletionProvider *provider,
GList *proposals,
gboolean finished);
diff --git a/gtksourceview/gtksourcecompletionprovider.h b/gtksourceview/gtksourcecompletionprovider.h
index b89da15..0d04f42 100644
--- a/gtksourceview/gtksourcecompletionprovider.h
+++ b/gtksourceview/gtksourcecompletionprovider.h
@@ -31,6 +31,7 @@
#include <gtksourceview/gtksourcecompletioninfo.h>
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcecompletioncontext.h>
+#include "gtksourcecompletion-private.h"
G_BEGIN_DECLS
@@ -42,7 +43,6 @@ G_BEGIN_DECLS
#define GTK_SOURCE_COMPLETION_CAPABILITY_INTERACTIVE "standard::interactive"
#define GTK_SOURCE_COMPLETION_CAPABILITY_AUTOMATIC "standard::automatic"
-typedef struct _GtkSourceCompletionProvider GtkSourceCompletionProvider;
typedef struct _GtkSourceCompletionProviderIface GtkSourceCompletionProviderIface;
struct _GtkSourceCompletionProviderIface
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]