aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-07-23 16:56:45 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-07-23 20:16:26 +0800
commit5d4e8994e83c9ab650981c332eaef57f4fab2788 (patch)
tree693c4b4c56ccfec6763d792f51051f99b127f36c /composer
parentb349e6a55938e28d23835d6330c215bd570f0b29 (diff)
downloadgsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.tar
gsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.tar.gz
gsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.tar.bz2
gsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.tar.lz
gsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.tar.xz
gsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.tar.zst
gsoc2013-evolution-5d4e8994e83c9ab650981c332eaef57f4fab2788.zip
Fix a crit warning for Anjal
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header-table.c8
1 files changed, 6 insertions, 2 deletions
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);