[devhelp] Use G_PARAM_STATIC_STRINGS when creating properties



commit 7d7dcd8cecbff9500f6a36ec8db073df15638df0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Apr 29 15:26:16 2017 +0200

    Use G_PARAM_STATIC_STRINGS when creating properties

 src/dh-book-manager.c |    6 ++----
 src/dh-book-tree.c    |    3 ++-
 src/dh-sidebar.c      |    3 ++-
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index 2bb1b64..dc1ab33 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -223,10 +223,8 @@ dh_book_manager_class_init (DhBookManagerClass *klass)
                                                                "Group by language",
                                                                "TRUE if books should be grouped by language",
                                                                FALSE,
-                                                               (G_PARAM_READWRITE |
-                                                                G_PARAM_STATIC_NAME |
-                                                                G_PARAM_STATIC_NICK |
-                                                                G_PARAM_STATIC_BLURB)));
+                                                               G_PARAM_READWRITE |
+                                                               G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/dh-book-tree.c b/src/dh-book-tree.c
index cf73753..8cf61fb 100644
--- a/src/dh-book-tree.c
+++ b/src/dh-book-tree.c
@@ -691,7 +691,8 @@ dh_book_tree_class_init (DhBookTreeClass *klass)
                                                               "The book manager",
                                                               DH_TYPE_BOOK_MANAGER,
                                                               G_PARAM_READWRITE |
-                                                              G_PARAM_CONSTRUCT_ONLY));
+                                                              G_PARAM_CONSTRUCT_ONLY |
+                                                              G_PARAM_STATIC_STRINGS));
         /**
          * DhBookTree::link-selected:
          * @tree: a #DhBookTree object
diff --git a/src/dh-sidebar.c b/src/dh-sidebar.c
index bbee2b5..1cb0f01 100644
--- a/src/dh-sidebar.c
+++ b/src/dh-sidebar.c
@@ -700,7 +700,8 @@ dh_sidebar_class_init (DhSidebarClass *klass)
                                                               "The book maanger",
                                                               DH_TYPE_BOOK_MANAGER,
                                                               G_PARAM_READWRITE |
-                                                              G_PARAM_CONSTRUCT_ONLY));
+                                                              G_PARAM_CONSTRUCT_ONLY |
+                                                              G_PARAM_STATIC_STRINGS));
 
         /**
          * DhSidebar::link-selected:


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