[evolution-data-server/wip/nielsdg/g-param-static-strings] Always use G_PARAM_STATIC_STRINGS
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/wip/nielsdg/g-param-static-strings] Always use G_PARAM_STATIC_STRINGS
- Date: Mon, 6 Jan 2020 06:41:37 +0000 (UTC)
commit 44d22959c8b6f2eb18ace4819b041a5ed360e588
Author: Niels De Graef <nielsdegraef gmail com>
Date: Mon Jan 6 07:37:23 2020 +0100
Always use G_PARAM_STATIC_STRINGS
It prevents some unnecessary string copies and saves a tiny bit of
memory.
src/addressbook/libebook/e-book-client-cursor.c | 21 +++++---
.../libedata-book/e-data-book-cursor-cache.c | 4 +-
.../libedata-book/e-data-book-cursor-sqlite.c | 6 +--
src/camel/camel-message-info.c | 60 ++++++++++++++--------
src/camel/camel-mime-part.c | 12 +++--
src/camel/camel-object.c | 3 +-
.../providers/imapx/camel-imapx-message-info.c | 9 ++--
.../providers/local/camel-maildir-message-info.c | 3 +-
.../providers/local/camel-mbox-message-info.c | 3 +-
src/camel/providers/nntp/camel-nntp-folder.c | 1 +
src/libedataserver/e-module.c | 3 +-
src/libedataserver/e-source-ldap.c | 11 +++-
src/libedataserver/e-source-revision-guards.c | 1 +
src/libedataserver/e-source-webdav.c | 13 ++++-
14 files changed, 103 insertions(+), 47 deletions(-)
---
diff --git a/src/addressbook/libebook/e-book-client-cursor.c b/src/addressbook/libebook/e-book-client-cursor.c
index 113ed8c00..11ba43e38 100644
--- a/src/addressbook/libebook/e-book-client-cursor.c
+++ b/src/addressbook/libebook/e-book-client-cursor.c
@@ -703,7 +703,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"The #EContactField names to sort this cursor with",
G_TYPE_STRV,
G_PARAM_WRITABLE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor:client:
@@ -721,7 +722,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"The EBookClient for the cursor",
E_TYPE_BOOK_CLIENT,
G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor:context:
@@ -743,7 +745,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"The GMainContext in which this cursor was created",
G_TYPE_MAIN_CONTEXT,
G_PARAM_WRITABLE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor:connection:
@@ -766,7 +769,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"to create the D-Bus proxy",
G_TYPE_DBUS_CONNECTION,
G_PARAM_WRITABLE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor:object-path:
@@ -812,7 +816,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"The EDataBookCursor for direct read access",
E_TYPE_DATA_BOOK_CURSOR,
G_PARAM_WRITABLE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor:alphabet:
@@ -865,7 +870,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"Total",
"The total contacts for this cursor's query",
0, G_MAXINT, 0,
- G_PARAM_READABLE));
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor:position:
@@ -898,7 +904,8 @@ e_book_client_cursor_class_init (EBookClientCursorClass *class)
"Position",
"The current cursor position",
0, G_MAXINT, 0,
- G_PARAM_READABLE));
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
/**
* EBookClientCursor::refresh:
diff --git a/src/addressbook/libedata-book/e-data-book-cursor-cache.c
b/src/addressbook/libedata-book/e-data-book-cursor-cache.c
index 34a8d8cb6..c2cf9d69b 100644
--- a/src/addressbook/libedata-book/e-data-book-cursor-cache.c
+++ b/src/addressbook/libedata-book/e-data-book-cursor-cache.c
@@ -356,7 +356,7 @@ e_data_book_cursor_cache_class_init (EDataBookCursorCacheClass *class)
"Book Cache",
"The EBookCache to use for queries",
E_TYPE_BOOK_CACHE,
- G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -365,7 +365,7 @@ e_data_book_cursor_cache_class_init (EDataBookCursorCacheClass *class)
"cursor",
"Cursor",
"The EBookCacheCursor pointer",
- G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/addressbook/libedata-book/e-data-book-cursor-sqlite.c
b/src/addressbook/libedata-book/e-data-book-cursor-sqlite.c
index 67f7be706..6ba42799b 100644
--- a/src/addressbook/libedata-book/e-data-book-cursor-sqlite.c
+++ b/src/addressbook/libedata-book/e-data-book-cursor-sqlite.c
@@ -112,7 +112,7 @@ e_data_book_cursor_sqlite_class_init (EDataBookCursorSqliteClass *class)
"ebsql", "EBookSqlite",
"The EBookSqlite to use for queries",
E_TYPE_BOOK_SQLITE,
- G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -121,7 +121,7 @@ e_data_book_cursor_sqlite_class_init (EDataBookCursorSqliteClass *class)
"revision-key", "Revision Key",
"The key name to fetch the revision from the sqlite backend",
NULL,
- G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -129,7 +129,7 @@ e_data_book_cursor_sqlite_class_init (EDataBookCursorSqliteClass *class)
g_param_spec_pointer (
"cursor", "Cursor",
"The EbSqlCursor pointer",
- G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/camel/camel-message-info.c b/src/camel/camel-message-info.c
index 5db87171a..d26232100 100644
--- a/src/camel/camel-message-info.c
+++ b/src/camel/camel-message-info.c
@@ -615,7 +615,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
CAMEL_TYPE_FOLDER_SUMMARY,
G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:uid
@@ -633,7 +634,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:dirty
@@ -652,7 +654,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
FALSE,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:folder-flagged
@@ -673,7 +676,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
FALSE,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:folder-flagged-stamp
@@ -693,7 +697,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
"Folder Flagged Stamp",
NULL,
0, G_MAXUINT, 0,
- G_PARAM_READABLE));
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:abort-notifications
@@ -713,7 +718,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
FALSE,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:flags
@@ -731,7 +737,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
0, G_MAXUINT32, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:user-flags
@@ -751,7 +758,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
CAMEL_TYPE_NAMED_FLAGS,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:user-tags
@@ -771,7 +779,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
CAMEL_TYPE_NAME_VALUE_ARRAY,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:subject
@@ -789,7 +798,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:from
@@ -807,7 +817,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:to
@@ -825,7 +836,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:cc
@@ -843,7 +855,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:mlist
@@ -861,7 +874,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:size
@@ -879,7 +893,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
0, G_MAXUINT32, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:date-sent
@@ -897,7 +912,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
G_MININT64, G_MAXINT64, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:date-received
@@ -915,7 +931,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
G_MININT64, G_MAXINT64, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:message-id
@@ -934,7 +951,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
0, G_MAXUINT64, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:references
@@ -954,7 +972,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
G_TYPE_ARRAY,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelMessageInfo:headers
@@ -972,7 +991,8 @@ camel_message_info_class_init (CamelMessageInfoClass *class)
NULL,
CAMEL_TYPE_NAME_VALUE_ARRAY,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/camel/camel-mime-part.c b/src/camel/camel-mime-part.c
index c5b4ad52c..a1394446e 100644
--- a/src/camel/camel-mime-part.c
+++ b/src/camel/camel-mime-part.c
@@ -1042,7 +1042,8 @@ camel_mime_part_class_init (CamelMimePartClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -1053,7 +1054,8 @@ camel_mime_part_class_init (CamelMimePartClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -1064,7 +1066,8 @@ camel_mime_part_class_init (CamelMimePartClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -1075,7 +1078,8 @@ camel_mime_part_class_init (CamelMimePartClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
init_header_name_table ();
}
diff --git a/src/camel/camel-object.c b/src/camel/camel-object.c
index 09f7dda58..2c7ebd3f1 100644
--- a/src/camel/camel-object.c
+++ b/src/camel/camel-object.c
@@ -408,7 +408,8 @@ camel_object_class_init (CamelObjectClass *class)
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/camel/providers/imapx/camel-imapx-message-info.c
b/src/camel/providers/imapx/camel-imapx-message-info.c
index 7bdc10cde..97a5e3f7a 100644
--- a/src/camel/providers/imapx/camel-imapx-message-info.c
+++ b/src/camel/providers/imapx/camel-imapx-message-info.c
@@ -288,7 +288,8 @@ camel_imapx_message_info_class_init (CamelIMAPXMessageInfoClass *class)
NULL,
0, G_MAXUINT32, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelIMAPXMessageInfo:server-user-flags
@@ -307,7 +308,8 @@ camel_imapx_message_info_class_init (CamelIMAPXMessageInfoClass *class)
NULL,
CAMEL_TYPE_NAMED_FLAGS,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
/**
* CamelIMAPXMessageInfo:server-user-tags
@@ -326,7 +328,8 @@ camel_imapx_message_info_class_init (CamelIMAPXMessageInfoClass *class)
NULL,
CAMEL_TYPE_NAME_VALUE_ARRAY,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/camel/providers/local/camel-maildir-message-info.c
b/src/camel/providers/local/camel-maildir-message-info.c
index 94ef73067..440cd5057 100644
--- a/src/camel/providers/local/camel-maildir-message-info.c
+++ b/src/camel/providers/local/camel-maildir-message-info.c
@@ -163,7 +163,8 @@ camel_maildir_message_info_class_init (CamelMaildirMessageInfoClass *class)
NULL,
NULL,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/camel/providers/local/camel-mbox-message-info.c
b/src/camel/providers/local/camel-mbox-message-info.c
index 6ec18f6ef..3e6b08011 100644
--- a/src/camel/providers/local/camel-mbox-message-info.c
+++ b/src/camel/providers/local/camel-mbox-message-info.c
@@ -197,7 +197,8 @@ camel_mbox_message_info_class_init (CamelMboxMessageInfoClass *class)
NULL,
0, G_MAXINT64, 0,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/camel/providers/nntp/camel-nntp-folder.c b/src/camel/providers/nntp/camel-nntp-folder.c
index 4b6c00c5f..b912a54cc 100644
--- a/src/camel/providers/nntp/camel-nntp-folder.c
+++ b/src/camel/providers/nntp/camel-nntp-folder.c
@@ -836,6 +836,7 @@ camel_nntp_folder_class_init (CamelNNTPFolderClass *class)
FALSE,
G_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
CAMEL_PARAM_PERSISTENT));
}
diff --git a/src/libedataserver/e-module.c b/src/libedataserver/e-module.c
index e0723b604..690156807 100644
--- a/src/libedataserver/e-module.c
+++ b/src/libedataserver/e-module.c
@@ -208,7 +208,8 @@ e_module_class_init (EModuleClass *class)
"The filename of the module",
NULL,
G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/libedataserver/e-source-ldap.c b/src/libedataserver/e-source-ldap.c
index cfeebad7e..18b0f66c3 100644
--- a/src/libedataserver/e-source-ldap.c
+++ b/src/libedataserver/e-source-ldap.c
@@ -357,7 +357,8 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
E_TYPE_SOURCE_LDAP_AUTHENTICATION,
E_SOURCE_LDAP_AUTHENTICATION_NONE,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -370,6 +371,7 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -383,6 +385,7 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -396,6 +399,7 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -409,6 +413,7 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -423,6 +428,7 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
/* This is bound to the security extension.
@@ -437,7 +443,8 @@ e_source_ldap_class_init (ESourceLDAPClass *class)
E_TYPE_SOURCE_LDAP_SECURITY,
E_SOURCE_LDAP_SECURITY_NONE,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
}
static void
diff --git a/src/libedataserver/e-source-revision-guards.c b/src/libedataserver/e-source-revision-guards.c
index 66589a86b..5ae4d6e83 100644
--- a/src/libedataserver/e-source-revision-guards.c
+++ b/src/libedataserver/e-source-revision-guards.c
@@ -117,6 +117,7 @@ e_source_revision_guards_class_init (ESourceRevisionGuardsClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
}
diff --git a/src/libedataserver/e-source-webdav.c b/src/libedataserver/e-source-webdav.c
index 84e2dbfa5..25bc0ddb5 100644
--- a/src/libedataserver/e-source-webdav.c
+++ b/src/libedataserver/e-source-webdav.c
@@ -507,7 +507,8 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
- G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -522,6 +523,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -535,6 +537,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -548,6 +551,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -561,6 +565,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -574,6 +579,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -587,6 +593,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
g_object_class_install_property (
@@ -598,7 +605,8 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
"WebDAV service as a SoupURI",
SOUP_TYPE_URI,
G_PARAM_READWRITE |
- G_PARAM_EXPLICIT_NOTIFY));
+ G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property (
object_class,
@@ -611,6 +619,7 @@ e_source_webdav_class_init (ESourceWebdavClass *class)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY |
+ G_PARAM_STATIC_STRINGS |
E_SOURCE_PARAM_SETTING));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]