[gcr/wip/nielsdg/g-param-static-strings: 9/9] ui: Use G_PARAM_STATIC_STRINGS



commit 1898dc0d906845222b09507dec48ab62f68ded04
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Fri Jan 3 09:43:40 2020 +0100

    ui: Use G_PARAM_STATIC_STRINGS

 ui/eggimagemenuitem.c                 |  4 ++--
 ui/frob-import-button.c               |  6 ++++--
 ui/frob-tree-selector.c               |  3 ++-
 ui/gcr-certificate-exporter.c         |  9 ++++++---
 ui/gcr-certificate-renderer.c         |  9 ++++++---
 ui/gcr-certificate-request-renderer.c |  7 ++++---
 ui/gcr-certificate-widget.c           |  6 ++++--
 ui/gcr-collection-model.c             |  7 ++++---
 ui/gcr-combo-selector.c               |  3 ++-
 ui/gcr-failure-renderer.c             |  6 ++++--
 ui/gcr-gnupg-renderer.c               |  9 ++++++---
 ui/gcr-key-widget.c                   |  3 ++-
 ui/gcr-list-selector.c                |  3 ++-
 ui/gcr-live-search.c                  |  6 ++++--
 ui/gcr-pkcs11-import-interaction.c    |  3 ++-
 ui/gcr-prompt-dialog.c                | 12 ++++++++----
 ui/gcr-renderer.c                     |  6 ++++--
 ui/gcr-tree-selector.c                |  5 +++--
 ui/gcr-unlock-options-widget.c        |  6 ++++--
 ui/gcr-unlock-renderer.c              |  6 ++++--
 ui/gcr-viewer-widget.c                |  6 ++++--
 21 files changed, 81 insertions(+), 44 deletions(-)
---
diff --git a/ui/eggimagemenuitem.c b/ui/eggimagemenuitem.c
index 7490892..47d2d9e 100644
--- a/ui/eggimagemenuitem.c
+++ b/ui/eggimagemenuitem.c
@@ -128,7 +128,7 @@ egg_image_menu_item_class_init (EggImageMenuItemClass *klass)
                                                         "Image widget",
                                                         "Child widget to appear next to the menu text",
                                                         GTK_TYPE_WIDGET,
-                                                        G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+                                                        G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | 
G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
                                    PROP_ALWAYS_SHOW_IMAGE,
@@ -136,7 +136,7 @@ egg_image_menu_item_class_init (EggImageMenuItemClass *klass)
                                                          "Always show image",
                                                          "Whether the image will always be shown",
                                                          FALSE,
-                                                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | 
G_PARAM_CONSTRUCT));
+                                                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | 
G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/ui/frob-import-button.c b/ui/frob-import-button.c
index c54435f..7b386a8 100644
--- a/ui/frob-import-button.c
+++ b/ui/frob-import-button.c
@@ -144,11 +144,13 @@ mock_importer_class_init (MockImporterClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "", "",
-                                       NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                       NULL,
+                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_ICON,
                   g_param_spec_object ("icon", "", "",
-                                       G_TYPE_ICON, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                       G_TYPE_ICON,
+                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
        g_object_class_override_property (gobject_class, PROP_URI, "uri");
        g_object_class_override_property (gobject_class, PROP_INTERACTION, "interaction");
diff --git a/ui/frob-tree-selector.c b/ui/frob-tree-selector.c
index f3b3187..816350e 100644
--- a/ui/frob-tree-selector.c
+++ b/ui/frob-tree-selector.c
@@ -77,7 +77,8 @@ test_collection_class_init (TestCollectionClass *klass)
        gobject_class->finalize = test_collection_finalize;
 
        g_object_class_install_property (gobject_class, PROP_LABEL,
-                  g_param_spec_string ("label", "label", "label", NULL, G_PARAM_READABLE));
+                  g_param_spec_string ("label", "label", "label", NULL,
+                                       G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static GcrSimpleCollection *
diff --git a/ui/gcr-certificate-exporter.c b/ui/gcr-certificate-exporter.c
index e72c07b..371397c 100644
--- a/ui/gcr-certificate-exporter.c
+++ b/ui/gcr-certificate-exporter.c
@@ -456,15 +456,18 @@ _gcr_certificate_exporter_class_init (GcrCertificateExporterClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_CERTIFICATE,
                   g_param_spec_object ("certificate", "Certificate", "Certificate to display.",
-                                      GCR_TYPE_CERTIFICATE, G_PARAM_READWRITE));
+                                      GCR_TYPE_CERTIFICATE,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "Label", "Label of certificate.",
-                                       _("Certificate"), G_PARAM_READWRITE));
+                                       _("Certificate"),
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_TRANSIENT_FOR,
                   g_param_spec_object ("transient-for", "Transient For", "Transient for this Window",
-                                       GTK_TYPE_WINDOW, G_PARAM_READWRITE));
+                                       GTK_TYPE_WINDOW,
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static GObject*
diff --git a/ui/gcr-certificate-renderer.c b/ui/gcr-certificate-renderer.c
index 09ac7ee..5d9ba11 100644
--- a/ui/gcr-certificate-renderer.c
+++ b/ui/gcr-certificate-renderer.c
@@ -438,7 +438,8 @@ gcr_certificate_renderer_class_init (GcrCertificateRendererClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_CERTIFICATE,
                   g_param_spec_object ("certificate", "Certificate", "Certificate to display.",
-                                       GCR_TYPE_CERTIFICATE, G_PARAM_READWRITE));
+                                       GCR_TYPE_CERTIFICATE,
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrCertificateRenderer:attributes:
@@ -448,7 +449,8 @@ gcr_certificate_renderer_class_init (GcrCertificateRendererClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                   g_param_spec_boxed ("attributes", "Attributes", "Certificate pkcs11 attributes",
-                                      GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                      GCK_TYPE_ATTRIBUTES,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrCertificateRenderer:label:
@@ -457,7 +459,8 @@ gcr_certificate_renderer_class_init (GcrCertificateRendererClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "Label", "Certificate Label",
-                                       "", G_PARAM_READWRITE));
+                                       "",
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        gcr_certificate_mixin_class_init (gobject_class);
 
diff --git a/ui/gcr-certificate-request-renderer.c b/ui/gcr-certificate-request-renderer.c
index 0d4e0e9..2f3f44b 100644
--- a/ui/gcr-certificate-request-renderer.c
+++ b/ui/gcr-certificate-request-renderer.c
@@ -181,17 +181,18 @@ _gcr_certificate_request_renderer_class_init (GcrCertificateRequestRendererClass
         */
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                   g_param_spec_boxed ("attributes", "Attributes", "Certificate pkcs11 attributes",
-                                      GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                      GCK_TYPE_ATTRIBUTES,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrCertificateRequestRenderer:label:
         *
         * The label to display.
         */
-
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "Label", "Certificate Label",
-                                       "", G_PARAM_READWRITE));
+                                       "",
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /* Register this as a renderer which can be loaded */
        gck_builder_add_ulong (&builder, CKA_CLASS, CKO_GCR_CERTIFICATE_REQUEST);
diff --git a/ui/gcr-certificate-widget.c b/ui/gcr-certificate-widget.c
index ab0547d..f5d6c7a 100644
--- a/ui/gcr-certificate-widget.c
+++ b/ui/gcr-certificate-widget.c
@@ -167,11 +167,13 @@ gcr_certificate_widget_class_init (GcrCertificateWidgetClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_CERTIFICATE,
                   g_param_spec_object("certificate", "Certificate", "Certificate to display.",
-                                      GCR_TYPE_CERTIFICATE, G_PARAM_READWRITE));
+                                      GCR_TYPE_CERTIFICATE,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                 g_param_spec_boxed ("attributes", "Attributes", "Attributes which contain the certificate",
-                                    GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                    GCK_TYPE_ATTRIBUTES,
+                                    G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 /* -----------------------------------------------------------------------------
diff --git a/ui/gcr-collection-model.c b/ui/gcr-collection-model.c
index 2b6ee8c..dd70985 100644
--- a/ui/gcr-collection-model.c
+++ b/ui/gcr-collection-model.c
@@ -1251,15 +1251,16 @@ gcr_collection_model_class_init (GcrCollectionModelClass *klass)
        g_object_class_install_property (gobject_class, PROP_MODE,
                      g_param_spec_enum ("mode", "Mode", "Tree or list mode",
                                         GCR_TYPE_COLLECTION_MODEL_MODE, GCR_COLLECTION_MODEL_TREE,
-                                        G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                        G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_COLLECTION,
                    g_param_spec_object ("collection", "Object Collection", "Collection to get objects from",
-                                        GCR_TYPE_COLLECTION, G_PARAM_READWRITE));
+                                        GCR_TYPE_COLLECTION,
+                                        G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_COLUMNS,
                g_param_spec_pointer ("columns", "Columns", "Columns for the model",
-                                     G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                     G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 }
 
 /**
diff --git a/ui/gcr-combo-selector.c b/ui/gcr-combo-selector.c
index e14d261..b08a80e 100644
--- a/ui/gcr-combo-selector.c
+++ b/ui/gcr-combo-selector.c
@@ -184,7 +184,8 @@ gcr_combo_selector_class_init (GcrComboSelectorClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_COLLECTION,
                   g_param_spec_object ("collection", "Collection", "Collection to select from",
-                                       GCR_TYPE_COLLECTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                       GCR_TYPE_COLLECTION,
+                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 }
 
 /* -----------------------------------------------------------------------------
diff --git a/ui/gcr-failure-renderer.c b/ui/gcr-failure-renderer.c
index 417559d..37f8c90 100644
--- a/ui/gcr-failure-renderer.c
+++ b/ui/gcr-failure-renderer.c
@@ -117,11 +117,13 @@ gcr_failure_renderer_class_init (GcrFailureRendererClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "Label", "Failure Label",
-                                       "", G_PARAM_READWRITE));
+                                       "",
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                   g_param_spec_boxed ("attributes", "Attributes", "Renderer attributes",
-                                      GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                      GCK_TYPE_ATTRIBUTES,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/ui/gcr-gnupg-renderer.c b/ui/gcr-gnupg-renderer.c
index c1836a9..73fb5d6 100644
--- a/ui/gcr-gnupg-renderer.c
+++ b/ui/gcr-gnupg-renderer.c
@@ -172,15 +172,18 @@ _gcr_gnupg_renderer_class_init (GcrGnupgRendererClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_RECORDS,
                   g_param_spec_boxed ("records", "Records", "Gnupg records to display",
-                                      G_TYPE_PTR_ARRAY, G_PARAM_READWRITE));
+                                      G_TYPE_PTR_ARRAY,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                   g_param_spec_boxed ("attributes", "Attributes", "Certificate pkcs11 attributes",
-                                      GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                      GCK_TYPE_ATTRIBUTES,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "Label", "Certificate Label",
-                                       "", G_PARAM_READWRITE));
+                                       "",
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /* Register this as a renderer which can be loaded */
        gck_builder_add_ulong (&builder, CKA_CLASS, CKO_GCR_GNUPG_RECORDS);
diff --git a/ui/gcr-key-widget.c b/ui/gcr-key-widget.c
index d81964d..26737ff 100644
--- a/ui/gcr-key-widget.c
+++ b/ui/gcr-key-widget.c
@@ -168,7 +168,8 @@ gcr_key_widget_class_init (GcrKeyWidgetClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                 g_param_spec_boxed ("attributes", "Attributes", "The data displayed in the widget",
-                                    GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                    GCK_TYPE_ATTRIBUTES,
+                                    G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 /* -----------------------------------------------------------------------------
diff --git a/ui/gcr-list-selector.c b/ui/gcr-list-selector.c
index 5edd272..a4045cb 100644
--- a/ui/gcr-list-selector.c
+++ b/ui/gcr-list-selector.c
@@ -348,7 +348,8 @@ gcr_list_selector_class_init (GcrListSelectorClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_COLLECTION,
                   g_param_spec_object ("collection", "Collection", "Collection to select from",
-                                       GCR_TYPE_COLLECTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                       GCR_TYPE_COLLECTION,
+                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 }
 
 /* -----------------------------------------------------------------------------
diff --git a/ui/gcr-live-search.c b/ui/gcr-live-search.c
index 316a8d2..39272aa 100644
--- a/ui/gcr-live-search.c
+++ b/ui/gcr-live-search.c
@@ -505,12 +505,14 @@ _gcr_live_search_class_init (GcrLiveSearchClass *klass)
 
        param_spec = g_param_spec_object ("hook-widget", "Live Search Hook Widget",
                                          "The live search catches key-press-events on this widget",
-                                         GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+                                         GTK_TYPE_WIDGET,
+                                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | 
G_PARAM_STATIC_STRINGS);
        g_object_class_install_property (object_class, PROP_HOOK_WIDGET, param_spec);
 
        param_spec = g_param_spec_string ("text", "Live Search Text",
                                          "The text of the live search entry",
-                                         "", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+                                         "",
+                                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | 
G_PARAM_STATIC_STRINGS);
        g_object_class_install_property (object_class, PROP_TEXT, param_spec);
 }
 
diff --git a/ui/gcr-pkcs11-import-interaction.c b/ui/gcr-pkcs11-import-interaction.c
index 52e9fe3..22a17ff 100644
--- a/ui/gcr-pkcs11-import-interaction.c
+++ b/ui/gcr-pkcs11-import-interaction.c
@@ -245,7 +245,8 @@ _gcr_pkcs11_import_interaction_class_init (GcrPkcs11ImportInteractionClass *klas
 
        g_object_class_install_property (gobject_class, PROP_PARENT_WINDOW,
                      g_param_spec_object ("parent-window", "Parent Window", "Prompt Parent Window",
-                                          GTK_TYPE_WINDOW, G_PARAM_READWRITE));
+                                          GTK_TYPE_WINDOW,
+                                          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 GTlsInteraction *
diff --git a/ui/gcr-prompt-dialog.c b/ui/gcr-prompt-dialog.c
index 606620e..246ccd4 100644
--- a/ui/gcr-prompt-dialog.c
+++ b/ui/gcr-prompt-dialog.c
@@ -789,7 +789,8 @@ gcr_prompt_dialog_class_init (GcrPromptDialogClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_PASSWORD_VISIBLE,
                   g_param_spec_boolean ("password-visible", "Password visible", "Password field is visible",
-                                        FALSE, G_PARAM_READABLE));
+                                        FALSE,
+                                        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrPromptDialog:confirm-visible:
@@ -798,7 +799,8 @@ gcr_prompt_dialog_class_init (GcrPromptDialogClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_CONFIRM_VISIBLE,
                   g_param_spec_boolean ("confirm-visible", "Confirm visible", "Confirm field is visible",
-                                        FALSE, G_PARAM_READABLE));
+                                        FALSE,
+                                        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrPromptDialog:warning-visible:
@@ -807,7 +809,8 @@ gcr_prompt_dialog_class_init (GcrPromptDialogClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_WARNING_VISIBLE,
                   g_param_spec_boolean ("warning-visible", "Warning visible", "Warning is visible",
-                                        FALSE, G_PARAM_READABLE));
+                                        FALSE,
+                                        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrPromptDialog:choice-visible:
@@ -816,7 +819,8 @@ gcr_prompt_dialog_class_init (GcrPromptDialogClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_CHOICE_VISIBLE,
                   g_param_spec_boolean ("choice-visible", "Choice visible", "Choice is visible",
-                                        FALSE, G_PARAM_READABLE));
+                                        FALSE,
+                                        G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/ui/gcr-renderer.c b/ui/gcr-renderer.c
index 4edcb70..cd91190 100644
--- a/ui/gcr-renderer.c
+++ b/ui/gcr-renderer.c
@@ -92,7 +92,8 @@ gcr_renderer_default_init (GcrRendererIface *iface)
                 */
                g_object_interface_install_property (iface,
                         g_param_spec_string ("label", "Label", "The label for the renderer",
-                                             "", G_PARAM_READWRITE));
+                                             "",
+                                             G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
                /**
                 * GcrRenderer:attributes:
@@ -101,7 +102,8 @@ gcr_renderer_default_init (GcrRendererIface *iface)
                 */
                g_object_interface_install_property (iface,
                         g_param_spec_boxed ("attributes", "Attributes", "The data displayed in the renderer",
-                                            GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                            GCK_TYPE_ATTRIBUTES,
+                                            G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
                /**
                 * GcrRenderer::data-changed:
diff --git a/ui/gcr-tree-selector.c b/ui/gcr-tree-selector.c
index 0a3f7a0..3c0bbd0 100644
--- a/ui/gcr-tree-selector.c
+++ b/ui/gcr-tree-selector.c
@@ -263,7 +263,8 @@ gcr_tree_selector_class_init (GcrTreeSelectorClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_COLLECTION,
                   g_param_spec_object ("collection", "Collection", "Collection to select from",
-                                       GCR_TYPE_COLLECTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                       GCR_TYPE_COLLECTION,
+                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrTreeSelector:columns:
@@ -272,7 +273,7 @@ gcr_tree_selector_class_init (GcrTreeSelectorClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_COLUMNS,
                   g_param_spec_pointer ("columns", "Columns", "Columns to display in selector",
-                                        G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+                                        G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 }
 
 /* -----------------------------------------------------------------------------
diff --git a/ui/gcr-unlock-options-widget.c b/ui/gcr-unlock-options-widget.c
index b4bdace..afcc473 100644
--- a/ui/gcr-unlock-options-widget.c
+++ b/ui/gcr-unlock-options-widget.c
@@ -296,11 +296,13 @@ gcr_unlock_options_widget_class_init (GcrUnlockOptionsWidgetClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_CHOICE,
                       g_param_spec_string ("choice", "Choice", "Unlock Option Choice",
-                                           NULL, G_PARAM_READWRITE));
+                                           NULL,
+                                           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_TTL,
                       g_param_spec_uint ("ttl", "TTL", "Unlock Option Timeout in Seconds",
-                                         0, G_MAXUINT, 0, G_PARAM_READWRITE));
+                                         0, G_MAXUINT, 0,
+                                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 }
 
 /* -----------------------------------------------------------------------------
diff --git a/ui/gcr-unlock-renderer.c b/ui/gcr-unlock-renderer.c
index 823fa92..7cb1b2e 100644
--- a/ui/gcr-unlock-renderer.c
+++ b/ui/gcr-unlock-renderer.c
@@ -206,11 +206,13 @@ _gcr_unlock_renderer_class_init (GcrUnlockRendererClass *klass)
 
        g_object_class_install_property (gobject_class, PROP_LABEL,
                   g_param_spec_string ("label", "Label", "Unlock Label",
-                                       "", G_PARAM_READWRITE));
+                                       "",
+                                       G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                   g_param_spec_boxed ("attributes", "Attributes", "Certificate pkcs11 attributes",
-                                      GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE));
+                                      GCK_TYPE_ATTRIBUTES,
+                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        signals[UNLOCK_CLICKED] = g_signal_new ("unlock-clicked", GCR_TYPE_UNLOCK_RENDERER, G_SIGNAL_RUN_LAST,
                                                G_STRUCT_OFFSET (GcrUnlockRendererClass, unlock_clicked),
diff --git a/ui/gcr-viewer-widget.c b/ui/gcr-viewer-widget.c
index 61b1d50..3401f46 100644
--- a/ui/gcr-viewer-widget.c
+++ b/ui/gcr-viewer-widget.c
@@ -358,7 +358,8 @@ gcr_viewer_widget_class_init (GcrViewerWidgetClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_PARSER,
                   g_param_spec_object ("parser", "Parser", "Parser used to parse viewable items",
-                                       GCR_TYPE_PARSER, G_PARAM_READABLE));
+                                       GCR_TYPE_PARSER,
+                                       G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrViewerWidget:display-name:
@@ -371,7 +372,8 @@ gcr_viewer_widget_class_init (GcrViewerWidgetClass *klass)
         */
        g_object_class_install_property (gobject_class, PROP_DISPLAY_NAME,
                    g_param_spec_string ("display-name", "Display name", "Display name",
-                                        NULL, G_PARAM_READWRITE));
+                                        NULL,
+                                        G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
        /**
         * GcrViewerWidget::added:


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