aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-text-header.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-10 01:50:33 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-10 01:50:33 +0800
commitecc1f7ae88ae9ef26f182f97a481a00470969cd1 (patch)
tree7752611434f9efe7af9982b4307960d97b8fba91 /composer/e-composer-text-header.c
parentf46ea07a61ad8fc8a6af8e95fcda73cfa4983348 (diff)
downloadgsoc2013-evolution-ecc1f7ae88ae9ef26f182f97a481a00470969cd1.tar.gz
gsoc2013-evolution-ecc1f7ae88ae9ef26f182f97a481a00470969cd1.tar.zst
gsoc2013-evolution-ecc1f7ae88ae9ef26f182f97a481a00470969cd1.zip
Bug #200683 - Composer subject spell checking
Diffstat (limited to 'composer/e-composer-text-header.c')
-rw-r--r--composer/e-composer-text-header.c31
1 files changed, 24 insertions, 7 deletions
diff --git a/composer/e-composer-text-header.c b/composer/e-composer-text-header.c
index 39279237ab..8506541ef0 100644
--- a/composer/e-composer-text-header.c
+++ b/composer/e-composer-text-header.c
@@ -66,16 +66,17 @@ composer_text_header_query_tooltip_cb (GtkEntry *entry,
}
static void
-e_composer_text_header_class_init (EComposerTextHeaderClass *class)
-{
-}
-
-static void
-e_composer_text_header_init (EComposerTextHeader *header)
+e_composer_text_header_constructed (GObject *object)
{
GtkWidget *widget;
+ EComposerTextHeader *header;
+
+ G_OBJECT_CLASS (e_composer_text_header_parent_class)->constructed (object);
+
+ header = E_COMPOSER_TEXT_HEADER (object);
+ g_return_if_fail (header != NULL);
- widget = g_object_ref_sink (gtk_entry_new ());
+ widget = g_object_ref_sink (g_object_new (E_COMPOSER_TEXT_HEADER_GET_CLASS (header)->entry_type, NULL));
g_signal_connect (
widget, "changed",
G_CALLBACK (composer_text_header_changed_cb), header);
@@ -86,6 +87,22 @@ e_composer_text_header_init (EComposerTextHeader *header)
E_COMPOSER_HEADER (header)->input_widget = widget;
}
+static void
+e_composer_text_header_class_init (EComposerTextHeaderClass *class)
+{
+ GObjectClass *object_class;
+
+ class->entry_type = GTK_TYPE_ENTRY;
+
+ object_class = G_OBJECT_CLASS (class);
+ object_class->constructed = e_composer_text_header_constructed;
+}
+
+static void
+e_composer_text_header_init (EComposerTextHeader *header)
+{
+}
+
EComposerHeader *
e_composer_text_header_new_label (const gchar *label)
{