[gtksourceview] mark: add missing G_PARAM_STATIC_STRINGS's



commit d7e89118fef98c53a6a0d2030133f8e07239786a
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jun 20 18:00:54 2016 +0200

    mark: add missing G_PARAM_STATIC_STRINGS's

 gtksourceview/gtksourcemark.c           |    4 +++-
 gtksourceview/gtksourcemarkattributes.c |   16 +++++++++++-----
 gtksourceview/gtksourcemarkssequence.c  |    4 +++-
 3 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/gtksourceview/gtksourcemark.c b/gtksourceview/gtksourcemark.c
index da0414e..4a0f668 100644
--- a/gtksourceview/gtksourcemark.c
+++ b/gtksourceview/gtksourcemark.c
@@ -144,7 +144,9 @@ gtk_source_mark_class_init (GtkSourceMarkClass *klass)
                                                              "Category",
                                                              "The mark category",
                                                              NULL,
-                                                             G_PARAM_READABLE | G_PARAM_WRITABLE | 
G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/gtksourceview/gtksourcemarkattributes.c b/gtksourceview/gtksourcemarkattributes.c
index 20b1d75..e88274b 100644
--- a/gtksourceview/gtksourcemarkattributes.c
+++ b/gtksourceview/gtksourcemarkattributes.c
@@ -291,7 +291,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
                                                             "Background",
                                                             "The background",
                                                             GDK_TYPE_RGBA,
-                                                            G_PARAM_READWRITE));
+                                                            G_PARAM_READWRITE |
+                                                            G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceMarkAttributes:stock-id:
@@ -306,7 +307,9 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
                                                              "Stock Id",
                                                              "The stock id",
                                                              NULL,
-                                                             G_PARAM_READWRITE | G_PARAM_DEPRECATED));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_DEPRECATED |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceMarkAttributes:pixbuf:
@@ -319,7 +322,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
                                                              "Pixbuf",
                                                              "The pixbuf",
                                                              GDK_TYPE_PIXBUF,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceMarkAttributes:icon-name:
@@ -332,7 +336,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
                                                              "Icon Name",
                                                              "The icon name",
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceMarkAttributes:gicon:
@@ -345,7 +350,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
                                                              "GIcon",
                                                              "The GIcon",
                                                              G_TYPE_ICON,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_STATIC_STRINGS));
 
        /**
         * GtkSourceMarkAttributes::query-tooltip-text:
diff --git a/gtksourceview/gtksourcemarkssequence.c b/gtksourceview/gtksourcemarkssequence.c
index 3b4d7dd..3252849 100644
--- a/gtksourceview/gtksourcemarkssequence.c
+++ b/gtksourceview/gtksourcemarkssequence.c
@@ -228,7 +228,9 @@ _gtk_source_marks_sequence_class_init (GtkSourceMarksSequenceClass *klass)
                                                              "Buffer",
                                                              "The text buffer",
                                                              GTK_TYPE_TEXT_BUFFER,
-                                                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                                             G_PARAM_READWRITE |
+                                                             G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_STATIC_STRINGS));
 }
 
 static void


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