[anjal] New attachment bar with new renderer.



commit 558973e87952621b383b15c0a1d836803184ece4
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Wed Jun 17 17:34:49 2009 +0530

    New attachment bar with new renderer.

 src/em-format-mail-display.c |   14 ++++++++++++--
 src/em-format-mail-display.h |    3 +++
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/em-format-mail-display.c b/src/em-format-mail-display.c
index 36d3c9e..45650cf 100644
--- a/src/em-format-mail-display.c
+++ b/src/em-format-mail-display.c
@@ -95,6 +95,7 @@
 
 struct _EMFormatMailDisplayPrivate {
 	GtkWidget *attachment_view;  /* weak reference */
+	GtkWidget *attachment_area;
 };
 
 #if 0
@@ -1560,7 +1561,6 @@ efhd_attachment_button(EMFormatMail *efh, GtkWidget *eb, EMFormatMailPObject *po
 		gtk_widget_hide(topbox);
 		info->child_box = topbox;
 	} else {
-		gtk_widget_set_sensitive(widget, FALSE);
 		GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_FOCUS);
 		info->child_box = NULL;
 	}
@@ -1621,7 +1621,11 @@ efhd_add_bar (EMFormatMail *efh,
 	GtkWidget *widget;
 
 	widget = e_mail_attachment_bar_new ();
-	gtk_box_pack_start (eb, widget, FALSE, FALSE, 0);
+	if (efhd->priv->attachment_area) {
+		gtk_box_pack_start (efhd->priv->attachment_area, widget, FALSE, FALSE, 0);
+		gtk_widget_show (efhd->priv->attachment_area);
+	} else
+		gtk_box_pack_start (eb, widget, FALSE, FALSE, 0);
 	efhd->priv->attachment_view = widget;
 	gtk_widget_hide (widget);
 
@@ -1969,3 +1973,9 @@ efwd_draw_in_main_thread (EMFormatMailDisplay *efwd, EMFormatMailPObject *pobjec
 
 	return;
 }
+
+void
+em_format_mail_display_set_attachment_pane (EMFormatMailDisplay *efmd, GtkWidget *box)
+{
+	efmd->priv->attachment_area = box;
+}
diff --git a/src/em-format-mail-display.h b/src/em-format-mail-display.h
index b29ce2c..3c9a748 100644
--- a/src/em-format-mail-display.h
+++ b/src/em-format-mail-display.h
@@ -116,6 +116,9 @@ void		em_format_mail_display_zoom_reset
 
 gboolean	em_format_mail_display_popup_menu
 						(EMFormatMailDisplay *efhd);
+void		em_format_mail_display_set_attachment_pane 
+						(EMFormatMailDisplay *efmd, 
+						 GtkWidget *box);
 
 G_END_DECLS
 



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