[gtksourceview] search: add missing G_PARAM_STATIC_STRINGS's
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] search: add missing G_PARAM_STATIC_STRINGS's
- Date: Mon, 20 Jun 2016 17:32:25 +0000 (UTC)
commit 927fb10de52f7208bf58beca384cecbaa66c8e18
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jun 20 17:37:47 2016 +0200
search: add missing G_PARAM_STATIC_STRINGS's
gtksourceview/gtksourcesearchcontext.c | 22 ++++++++++++++++------
gtksourceview/gtksourcesearchsettings.c | 20 +++++++++++++++-----
2 files changed, 31 insertions(+), 11 deletions(-)
---
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index 15afaff..ac40c16 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -2708,7 +2708,9 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
"Buffer",
"The associated GtkSourceBuffer",
GTK_SOURCE_TYPE_BUFFER,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchContext:settings:
@@ -2723,7 +2725,9 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
"Settings",
"The associated GtkSourceSearchSettings",
GTK_SOURCE_TYPE_SEARCH_SETTINGS,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchContext:highlight:
@@ -2738,7 +2742,9 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
"Highlight",
"Highlight search occurrences",
TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchContext:match-style:
@@ -2753,7 +2759,9 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
"Match style",
"The text style for matches",
GTK_SOURCE_TYPE_STYLE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchContext:occurrences-count:
@@ -2772,7 +2780,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
-1,
G_MAXINT,
0,
- G_PARAM_READABLE));
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchContext:regex-error:
@@ -2789,7 +2798,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_param_spec_pointer ("regex-error",
"Regex error",
"Regular expression error",
- G_PARAM_READABLE));
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/gtksourceview/gtksourcesearchsettings.c b/gtksourceview/gtksourcesearchsettings.c
index dbda9c6..1f058bd 100644
--- a/gtksourceview/gtksourcesearchsettings.c
+++ b/gtksourceview/gtksourcesearchsettings.c
@@ -172,7 +172,9 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
"Search text",
"The text to search",
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchSettings:case-sensitive:
@@ -187,7 +189,9 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
"Case sensitive",
"Case sensitive",
FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchSettings:at-word-boundaries:
@@ -203,7 +207,9 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
"At word boundaries",
"Search at word boundaries",
FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchSettings:wrap-around:
@@ -220,7 +226,9 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
"Wrap around",
"Wrap around",
FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
/**
* GtkSourceSearchSettings:regex-enabled:
@@ -236,7 +244,9 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
"Regex enabled",
"Whether to search by regular expression",
FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_STATIC_STRINGS));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]