aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-select-file.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-08-24 12:19:01 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-08-24 12:19:01 +0800
commit26da038f6d966c12c899f4c5b26413ccd0083347 (patch)
treefef774b173f99560d4126f55063f8c2f39ce085b /composer/e-msg-composer-select-file.c
parentdb4eb8ad23b7601552cb73d88b4dbd04305b0006 (diff)
downloadgsoc2013-evolution-26da038f6d966c12c899f4c5b26413ccd0083347.tar.gz
gsoc2013-evolution-26da038f6d966c12c899f4c5b26413ccd0083347.tar.zst
gsoc2013-evolution-26da038f6d966c12c899f4c5b26413ccd0083347.zip
Show the bar depending on the number of attachments.
2005-08-22 Srinivasa Ragavan <sragavan@novell.com> * e-msg-composer.c (drop_action): Show the bar depending on the number of attachments. * e-msg-composer-select-file.c (select_attach_response): Show the bar depending on the number of attachments. ** Fixes the bug #313083 svn path=/trunk/; revision=30233
Diffstat (limited to 'composer/e-msg-composer-select-file.c')
-rw-r--r--composer/e-msg-composer-select-file.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/composer/e-msg-composer-select-file.c b/composer/e-msg-composer-select-file.c
index 7a4b917f24..3f46abd160 100644
--- a/composer/e-msg-composer-select-file.c
+++ b/composer/e-msg-composer-select-file.c
@@ -46,6 +46,7 @@
#include "e-msg-composer-select-file.h"
#include <e-util/e-icon-factory.h>
#include "e-msg-composer.h"
+#include "e-attachment-bar.h"
enum {
SELECTOR_MODE_MULTI = (1 << 0),
@@ -218,8 +219,10 @@ select_attach_response(GtkWidget *selector, guint response, struct _EMsgComposer
func(composer, names, gtk_toggle_button_get_active(showinline));
- gtk_widget_show (composer->attachment_expander);
- gtk_widget_show (composer->attachment_scrolled_window);
+ if (e_attachment_bar_get_num_attachments(E_ATTACHMENT_BAR(composer->attachment_bar))) {
+ gtk_widget_show (composer->attachment_expander);
+ gtk_widget_show (composer->attachment_scrolled_window);
+ }
g_slist_foreach(names, (GFunc)g_free, NULL);
g_slist_free(names);