From 5d4e8994e83c9ab650981c332eaef57f4fab2788 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 23 Jul 2009 14:26:45 +0530 Subject: Fix a crit warning for Anjal --- composer/e-composer-header-table.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'composer') diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c index 2b040628a0..ed999bf019 100644 --- a/composer/e-composer-header-table.c +++ b/composer/e-composer-header-table.c @@ -160,7 +160,11 @@ composer_header_table_notify_header (EComposerHeader *header, { GtkWidget *parent; - parent = gtk_widget_get_parent (header->input_widget); + if (strcmp (property_name, "destinations-to") == 0) { + parent = g_object_get_data((GObject *)header->input_widget, "parent"); + } else { + parent = gtk_widget_get_parent (header->input_widget); + } g_return_if_fail (E_IS_COMPOSER_HEADER_TABLE (parent)); g_object_notify (G_OBJECT (parent), property_name); } @@ -508,7 +512,7 @@ composer_header_table_constructor (GType type, 0, 1, ii, ii + 1, GTK_FILL, GTK_FILL, 0, 3); if (composer_lite && ii == E_COMPOSER_HEADER_TO) { GtkWidget *box = gtk_hbox_new (FALSE, 0); - + g_object_set_data ((GObject *)priv->headers[ii]->input_widget, "parent", object); gtk_box_pack_start ((GtkBox *)box, priv->headers[ii]->input_widget, TRUE, TRUE, 3); gtk_box_pack_start ((GtkBox *)box, (GtkWidget *)priv->actions_container, FALSE, FALSE, 0); gtk_widget_show (box); -- cgit v1.2.3