pidgin/pidgin

ba76659ea73e
Trie: add g_object_notify_by_pspec to the setter
--- a/libpurple/trie.c Thu Mar 27 18:14:00 2014 +0100
+++ b/libpurple/trie.c Thu Mar 27 18:18:58 2014 +0100
@@ -96,6 +96,18 @@
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 @@
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)
{