[tasks] koto-hint-entry: update() when constructed to ensure the label is correct (BMC#1706)



commit f901781d7541f593350eece777a86f3473a35cd1
Author: Ross Burton <ross linux intel com>
Date:   Wed May 26 09:59:02 2010 +0100

    koto-hint-entry: update() when constructed to ensure the label is correct (BMC#1706)

 libkoto/koto-hint-entry.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libkoto/koto-hint-entry.c b/libkoto/koto-hint-entry.c
index 1c5ab18..213cce5 100644
--- a/libkoto/koto-hint-entry.c
+++ b/libkoto/koto-hint-entry.c
@@ -102,6 +102,12 @@ focus_out_event (GtkWidget *widget, GdkEventFocus *event)
 }
 
 static void
+koto_hint_entry_constructed (GObject *object)
+{
+  update (KOTO_HINT_ENTRY (object));
+}
+
+static void
 koto_hint_entry_get_property (GObject *object, guint property_id,
                               GValue *value, GParamSpec *pspec)
 {
@@ -154,6 +160,7 @@ koto_hint_entry_class_init (KotoHintEntryClass *klass)
 
   g_type_class_add_private (klass, sizeof (KotoHintEntryPrivate));
 
+  object_class->constructed = koto_hint_entry_constructed;
   object_class->set_property = koto_hint_entry_set_property;
   object_class->get_property = koto_hint_entry_get_property;
   object_class->finalize = koto_hint_entry_finalize;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]