/pidgin/main: ba76659ea73e: Trie: add g_object_notify_by_pspec t...
Tomasz Wasilczyk
twasilczyk at pidgin.im
Thu Mar 27 13:19:04 EDT 2014
Changeset: ba76659ea73ee5d52afd5e8ac663d917cc3fc7f4
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-03-27 18:18 +0100
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/ba76659ea73e
Description:
Trie: add g_object_notify_by_pspec to the setter
diffstat:
libpurple/trie.c | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diffs (47 lines):
diff --git a/libpurple/trie.c b/libpurple/trie.c
--- a/libpurple/trie.c
+++ b/libpurple/trie.c
@@ -96,6 +96,18 @@ typedef struct
gpointer user_data;
} PurpleTrieMachine;
+/* TODO: an option to make it eager or lazy (now, it's eager) */
+enum
+{
+ PROP_ZERO,
+ PROP_RESET_ON_MATCH,
+ PROP_LAST
+};
+
+static GObjectClass *parent_class = NULL;
+static GParamSpec *properties[PROP_LAST];
+
+
/*******************************************************************************
* Records list
******************************************************************************/
@@ -600,23 +612,13 @@ purple_trie_set_reset_on_match(PurpleTri
g_return_if_fail(priv);
priv->reset_on_match = reset;
+ g_object_notify_by_pspec(G_OBJECT(trie), properties[PROP_RESET_ON_MATCH]);
}
/*******************************************************************************
* Object stuff
******************************************************************************/
-/* TODO: an option to make it eager or lazy (now, it's eager) */
-enum
-{
- PROP_ZERO,
- PROP_RESET_ON_MATCH,
- PROP_LAST
-};
-
-static GObjectClass *parent_class = NULL;
-static GParamSpec *properties[PROP_LAST];
-
PurpleTrie *
purple_trie_new(void)
{
More information about the Commits
mailing list