[model/wip/api-redesign] Added a signal for ModelDictionary
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [model/wip/api-redesign] Added a signal for ModelDictionary
- Date: Sat, 27 Oct 2012 00:20:19 +0000 (UTC)
commit 236c284f6816c49e85b1a3172e2ff8f773dac7e4
Author: Alberto Ruiz <aruiz gnome org>
Date: Sat Oct 27 02:17:17 2012 +0200
Added a signal for ModelDictionary
model/model-dictionary.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/model/model-dictionary.c b/model/model-dictionary.c
index 630d20a..071f4b2 100644
--- a/model/model-dictionary.c
+++ b/model/model-dictionary.c
@@ -47,6 +47,12 @@
**/
G_DEFINE_ABSTRACT_TYPE (ModelDictionary, model_dictionary, G_TYPE_OBJECT);
+enum {
+ VALUE_CHANGED,
+ LAST_SIGNAL
+};
+
+guint signals[LAST_SIGNAL];
/**
* model_dictionary_get_value:
@@ -105,6 +111,19 @@ model_dictionary_list_keys (ModelDictionary *dictionary,
static void
model_dictionary_class_init (ModelDictionaryClass *class)
{
+ /*
+ * ModelDictionary::value-changed:
+ * @key: The key string of the value that changed
+ */
+ g_signal_new ("value-changed",
+ MODEL_TYPE_DICTIONARY,
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL,
+ NULL,
+ G_TYPE_NONE,
+ 1,
+ G_TYPE_STRING);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]