[frogr] Emit a new 'description-updated' signal from FrogrMainViewModel.
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Emit a new 'description-updated' signal from FrogrMainViewModel.
- Date: Fri, 22 Apr 2011 16:50:05 +0000 (UTC)
commit 4892a3d6a0d47e784f47674d2f9356fa567fab22
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Fri Apr 22 18:47:11 2011 +0200
Emit a new 'description-updated' signal from FrogrMainViewModel.
src/frogr-main-view-model.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-main-view-model.c b/src/frogr-main-view-model.c
index e1f8bfd..5d1a6a3 100644
--- a/src/frogr-main-view-model.c
+++ b/src/frogr-main-view-model.c
@@ -56,6 +56,7 @@ struct _FrogrMainViewModelPrivate
enum {
PICTURE_ADDED,
PICTURE_REMOVED,
+ DESCRIPTION_UPDATED,
N_SIGNALS
};
@@ -131,6 +132,14 @@ frogr_main_view_model_class_init(FrogrMainViewModelClass *klass)
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, FROGR_TYPE_PICTURE);
+ signals[DESCRIPTION_UPDATED] =
+ g_signal_new ("description-updated",
+ G_OBJECT_CLASS_TYPE (klass),
+ G_SIGNAL_RUN_FIRST,
+ 0, NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
g_type_class_add_private (obj_class, sizeof (FrogrMainViewModelPrivate));
}
@@ -473,4 +482,6 @@ frogr_main_view_model_set_state_description (FrogrMainViewModel *self,
g_free (priv->state_description);
priv->state_description = g_strdup (description);
+
+ g_signal_emit (self, signals[DESCRIPTION_UPDATED], 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]