diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2008-04-21 13:11:07 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2008-04-21 13:11:07 +0800 |
commit | d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1 (patch) | |
tree | 84831cf3f8f3efd87af0416c8f1f7111abceb673 /widgets | |
parent | d10522d18554de3e61f5973fe0f0ee0f9f8ae33a (diff) | |
download | gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar.gz gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar.bz2 gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar.lz gsoc2013-evolution-d48f96dd9f5cb5e8837b5c42b416cfbdb5eecfb1.tar.xz 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')
-rw-r--r-- | widgets/misc/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 21 | ||||
-rw-r--r-- | widgets/misc/e-attachment-bar.h | 4 |
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 } |