aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-bar.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-04-21 13:11:07 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-04-21 13:11:07 +0800
commitd48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1 (patch)
tree84831cf3f8f3efd87af0416c8f1f7111abceb673 /widgets/misc/e-attachment-bar.c
parentd10522d18554de3e61f5973fe0f0ee0f9f8ae33a (diff)
downloadgsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar.gz
gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar.zst
gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.zip
** Fix for bug #334444
2008-04-20 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #334444 * em-format-html-display.c: (efhd_attachment_button), (efhd_update_bar), (efhd_message_update_bar), (efhd_message_add_bar): * em-format-html.c: (efh_format_exec): 2008-04-20 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #334444 * e-attachment-bar.c: (e_attachment_bar_add_attachment_silent), (e_attachment_bar_refresh): * e-attachment-bar.h: svn path=/trunk/; revision=35393
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r--widgets/misc/e-attachment-bar.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index 0ef3ba21f7..81eae05193 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -1207,6 +1207,27 @@ e_attachment_bar_add_attachment (EAttachmentBar *bar, EAttachment *attachment)
add_common (bar, attachment);
}
+void
+e_attachment_bar_add_attachment_silent (EAttachmentBar *bar, EAttachment *attachment)
+{
+ g_return_if_fail (E_IS_ATTACHMENT_BAR (bar));
+ g_return_if_fail (attachment != NULL);
+
+ g_ptr_array_add (bar->priv->attachments, attachment);
+ g_object_weak_ref ((GObject *) attachment, (GWeakNotify) attachment_destroy, bar);
+ g_signal_connect (attachment, "changed", G_CALLBACK (attachment_changed_cb), bar);
+
+
+ g_signal_emit (bar, signals[CHANGED], 0);
+}
+
+void
+e_attachment_bar_refresh (EAttachmentBar *bar)
+{
+ update (bar);
+
+}
+
int
e_attachment_bar_get_download_count (EAttachmentBar *bar)
{