aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog8
-rw-r--r--widgets/misc/e-attachment-bar.c21
-rw-r--r--widgets/misc/e-attachment-bar.h4
3 files changed, 33 insertions, 0 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 608a0db842..1f9093d2e4 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,11 @@
+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:
+
2008-04-17 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #526739
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)
{
diff --git a/widgets/misc/e-attachment-bar.h b/widgets/misc/e-attachment-bar.h
index ec9e9cc6e4..d975b24633 100644
--- a/widgets/misc/e-attachment-bar.h
+++ b/widgets/misc/e-attachment-bar.h
@@ -94,6 +94,10 @@ GtkAction *
e_attachment_bar_recent_action_new (EAttachmentBar *bar,
const gchar *action_name,
const gchar *action_label);
+void
+e_attachment_bar_add_attachment_silent (EAttachmentBar *bar, EAttachment *attachment);
+void
+e_attachment_bar_refresh (EAttachmentBar *bar);
#ifdef __cplusplus
}