[gtksourceview] Better mark properties deprecations



commit da23242b1db1d8bfd665d3ca62b445af4d164293
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Nov 20 13:10:44 2014 +0100

    Better mark properties deprecations

 gtksourceview/gtksourcegutter.c         |   16 ++++++++++------
 gtksourceview/gtksourcemarkattributes.c |    2 +-
 2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index fa1d01e..c54ff50 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -538,8 +538,8 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
         *
         * The x-padding.
         *
-        * Deprecated: 3.12: Use the #GtkSourceGutterRenderer:xpad property
-        * instead.
+        * Deprecated: 3.12: Use the #GtkSourceGutterRenderer's
+        * #GtkSourceGutterRenderer:xpad property instead.
         */
        g_object_class_install_property (object_class,
                                         PROP_XPAD,
@@ -549,15 +549,17 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
                                                           -1,
                                                           G_MAXINT,
                                                           0,
-                                                          G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                          G_PARAM_READWRITE |
+                                                          G_PARAM_CONSTRUCT |
+                                                          G_PARAM_DEPRECATED));
 
        /**
         * GtkSourceGutter:ypad:
         *
         * The y-padding.
         *
-        * Deprecated: 3.12: Use the #GtkSourceGutterRenderer:ypad property
-        * instead.
+        * Deprecated: 3.12: Use the #GtkSourceGutterRenderer's
+        * #GtkSourceGutterRenderer:ypad property instead.
         */
        g_object_class_install_property (object_class,
                                         PROP_YPAD,
@@ -567,7 +569,9 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
                                                           -1,
                                                           G_MAXINT,
                                                           0,
-                                                          G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+                                                          G_PARAM_READWRITE |
+                                                          G_PARAM_CONSTRUCT |
+                                                          G_PARAM_DEPRECATED));
 }
 
 static void
diff --git a/gtksourceview/gtksourcemarkattributes.c b/gtksourceview/gtksourcemarkattributes.c
index b357833..9942bc3 100644
--- a/gtksourceview/gtksourcemarkattributes.c
+++ b/gtksourceview/gtksourcemarkattributes.c
@@ -302,7 +302,7 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
                                                              _("Stock Id"),
                                                              _("The stock id"),
                                                              NULL,
-                                                             G_PARAM_READWRITE));
+                                                             G_PARAM_READWRITE | G_PARAM_DEPRECATED));
 
        /**
         * GtkSourceMarkAttributes:pixbuf:


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