[gtksourceview] completion: add missing G_PARAM_STATIC_STRINGS's



commit fd73b12aa988a3503be847a6df12a83e29ce0b4d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jun 20 17:31:09 2016 +0200

    completion: add missing G_PARAM_STATIC_STRINGS's

 gtksourceview/gtksourcecompletion.c        |   36 +++++++++++++++++++++-------
 gtksourceview/gtksourcecompletioncontext.c |   11 ++++++--
 gtksourceview/gtksourcecompletionitem.c    |   21 +++++++++++-----
 3 files changed, 49 insertions(+), 19 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 4a1781e..cf15462 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2300,7 +2300,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                              "View",
                                                              "The GtkSourceView bound to the completion",
                                                              GTK_SOURCE_TYPE_VIEW,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:remember-info-visibility:
@@ -2315,7 +2317,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                               "Remember Info Visibility",
                                                               "Remember the last info window visibility 
state",
                                                               FALSE,
-                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                              G_PARAM_READWRITE |
+                                                              G_PARAM_CONSTRUCT |
+                                                              G_PARAM_STATIC_STRINGS));
        /**
         * GtkSourceCompletion:select-on-show:
         *
@@ -2328,7 +2332,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                               "Select on Show",
                                                               "Select first proposal when completion is 
shown",
                                                               TRUE,
-                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                              G_PARAM_READWRITE |
+                                                              G_PARAM_CONSTRUCT |
+                                                              G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:show-headers:
@@ -2342,7 +2348,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                               "Show Headers",
                                                               "Show provider headers when proposals from 
multiple providers are available",
                                                               TRUE,
-                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                              G_PARAM_READWRITE |
+                                                              G_PARAM_CONSTRUCT |
+                                                              G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:show-icons:
@@ -2356,7 +2364,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                               "Show Icons",
                                                               "Show provider and proposal icons in the 
completion popup",
                                                               TRUE,
-                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                              G_PARAM_READWRITE |
+                                                              G_PARAM_CONSTRUCT |
+                                                              G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:accelerators:
@@ -2373,7 +2383,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                            0,
                                                            10,
                                                            5,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                           G_PARAM_READWRITE |
+                                                           G_PARAM_CONSTRUCT |
+                                                           G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:auto-complete-delay:
@@ -2389,7 +2401,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                            0,
                                                            G_MAXUINT,
                                                            250,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                           G_PARAM_READWRITE |
+                                                           G_PARAM_CONSTRUCT |
+                                                           G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:provider-page-size:
@@ -2406,7 +2420,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                            1,
                                                            G_MAXUINT,
                                                            5,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                           G_PARAM_READWRITE |
+                                                           G_PARAM_CONSTRUCT |
+                                                           G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion:proposal-page-size:
@@ -2427,7 +2443,9 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                                            1,
                                                            G_MAXUINT,
                                                            5,
-                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                           G_PARAM_READWRITE |
+                                                           G_PARAM_CONSTRUCT |
+                                                           G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletion::show:
diff --git a/gtksourceview/gtksourcecompletioncontext.c b/gtksourceview/gtksourcecompletioncontext.c
index 4958ca1..696611e 100644
--- a/gtksourceview/gtksourcecompletioncontext.c
+++ b/gtksourceview/gtksourcecompletioncontext.c
@@ -246,7 +246,9 @@ gtk_source_completion_context_class_init (GtkSourceCompletionContextClass *klass
                                                              "Completion",
                                                              "The completion object to which the context 
belongs",
                                                              GTK_SOURCE_TYPE_COMPLETION,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionContext:iter:
@@ -259,7 +261,8 @@ gtk_source_completion_context_class_init (GtkSourceCompletionContextClass *klass
                                                             "Iterator",
                                                             "The GtkTextIter at which the completion was 
invoked",
                                                             GTK_TYPE_TEXT_ITER,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE |
+                                                            G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionContext:activation:
@@ -273,7 +276,9 @@ gtk_source_completion_context_class_init (GtkSourceCompletionContextClass *klass
                                                             "The type of activation",
                                                             GTK_SOURCE_TYPE_COMPLETION_ACTIVATION,
                                                             GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED,
-                                                            G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                            G_PARAM_READWRITE |
+                                                            G_PARAM_CONSTRUCT |
+                                                            G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/gtksourceview/gtksourcecompletionitem.c b/gtksourceview/gtksourcecompletionitem.c
index 11d1972..e83c9f2 100644
--- a/gtksourceview/gtksourcecompletionitem.c
+++ b/gtksourceview/gtksourcecompletionitem.c
@@ -281,7 +281,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "Label",
                                                              "Label to be shown for this item",
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionItem:markup:
@@ -294,7 +295,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "Markup",
                                                              "Markup to be shown for this item",
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionItem:text:
@@ -307,7 +309,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "Text",
                                                              "Item text",
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionItem:icon:
@@ -320,7 +323,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "Icon",
                                                              "Pixbuf of the icon to be shown for this item",
                                                              GDK_TYPE_PIXBUF,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionItem:icon-name:
@@ -335,7 +339,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "Icon Name",
                                                              "Icon name of the icon to be shown for this 
item",
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceCompletionItem:gicon:
@@ -350,7 +355,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "GIcon",
                                                              "GIcon of the icon to be shown for this item",
                                                              G_TYPE_ICON,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
        /**
         * GtkSourceCompletionItem:info:
         *
@@ -362,7 +368,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
                                                              "Info",
                                                              "Info to be shown for this item",
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static void


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