[gnome-todo] task-list: Optimize properties
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list: Optimize properties
- Date: Mon, 1 Apr 2019 13:45:21 +0000 (UTC)
commit 35ee8a5f3ccd4dc42b9bba985bb941cc5b3bb841
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Mar 31 12:37:03 2019 -0300
task-list: Optimize properties
All our properties have static strings, and are explicitly
notified, so mark them as such.
src/gtd-task-list.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gtd-task-list.c b/src/gtd-task-list.c
index 7a61900..0f7472b 100644
--- a/src/gtd-task-list.c
+++ b/src/gtd-task-list.c
@@ -419,7 +419,7 @@ gtd_task_list_class_init (GtdTaskListClass *klass)
"Color of the list",
"The color of the list",
GDK_TYPE_RGBA,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
/**
* GtdTaskList::is-removable:
@@ -430,7 +430,7 @@ gtd_task_list_class_init (GtdTaskListClass *klass)
"Whether the task list is removable",
"Whether the task list can be removed from the
system",
FALSE,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
/**
* GtdTaskList::name:
@@ -441,7 +441,7 @@ gtd_task_list_class_init (GtdTaskListClass *klass)
"Name of the list",
"The name of the list",
NULL,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
/**
* GtdTaskList::provider:
@@ -452,7 +452,7 @@ gtd_task_list_class_init (GtdTaskListClass *klass)
"Provider of the list",
"The provider that handles the list",
GTD_TYPE_PROVIDER,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (object_class, N_PROPS, properties);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]