[evolution] Fix a crit warning for Anjal



commit 5d4e8994e83c9ab650981c332eaef57f4fab2788
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Thu Jul 23 14:26:45 2009 +0530

    Fix a crit warning for Anjal

 composer/e-composer-header-table.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index 2b04062..ed999bf 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);



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