aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog15
-rw-r--r--mail/component-factory.c4
-rw-r--r--mail/mail-local.c24
-rw-r--r--mail/mail-mt.c4
4 files changed, 41 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 694fe38f0d..6178c131f2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,18 @@
+2001-07-20 Peter Williams <peterw@ximian.com>
+
+ * mail-mt.c (mail_msgport_replied): Fix DanW's fix. Pass the right
+ arguments to mail_msg_destroy.
+
+ * component-factory.c (component_fn): Don't populate the context
+ menu; our only action didn't even work.
+ (populate_folder_context_menu): Removed. ChangeFolderProperties
+ needs a FolderBrowser which we don't have. It didn't even work
+ before.
+
+ * mail-local.c (mail_local_reconfigure_folder): Bring the creation
+ of the hash table to the beginning to prevent warnings. Complain
+ if the mailbox is non-local.
+
2001-07-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (filter_folder_filter): Don't expunge the source
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 5074cbfabf..039cacd7df 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -300,6 +300,7 @@ xfer_folder (EvolutionShellComponent *shell_component,
CORBA_exception_free (&ev);
}
+#if 0
static void
populate_folder_context_menu (EvolutionShellComponent *shell_component,
BonoboUIComponent *uic,
@@ -317,6 +318,7 @@ populate_folder_context_menu (EvolutionShellComponent *shell_component,
bonobo_ui_component_set_translate (uic, EVOLUTION_SHELL_COMPONENT_POPUP_PLACEHOLDER,
popup_xml, NULL);
}
+#endif
static char *
get_dnd_selection (EvolutionShellComponent *shell_component,
@@ -671,7 +673,7 @@ component_fn (BonoboGenericFactory *factory, void *closure)
create_folder,
remove_folder,
xfer_folder,
- populate_folder_context_menu,
+ /*populate_folder_context_menu*/NULL,
get_dnd_selection,
NULL);
diff --git a/mail/mail-local.c b/mail/mail-local.c
index 7399a9e073..b8bc94947b 100644
--- a/mail/mail-local.c
+++ b/mail/mail-local.c
@@ -49,6 +49,7 @@
#include "evolution-shell-component.h"
#include "evolution-storage-listener.h"
+#include "gal/widgets/e-gui-utils.h"
#include "e-util/e-path.h"
#include "camel/camel.h"
@@ -971,11 +972,29 @@ mail_local_reconfigure_folder (FolderBrowser *fb)
return;
}
+ if (!reconfigure_folder_hash)
+ reconfigure_folder_hash = g_hash_table_new (g_direct_hash, g_direct_equal);
+
if ((gd = g_hash_table_lookup (reconfigure_folder_hash, fb->folder))) {
/* FIXME: raise this dialog?? */
return;
}
-
+
+ /* check if we can work on this folder */
+ name = strchr (fb->uri, '/');
+ if (name) {
+ while (*name == '/')
+ name++;
+ /* we just want to see if it's NULL or not */
+ name = (char *) g_hash_table_lookup (local_store->folders, name);
+ }
+
+ if (name == NULL) {
+ e_notice (NULL, GNOME_MESSAGE_BOX_WARNING,
+ _("You cannot change the format of a non-local folder."));
+ return;
+ }
+
m = mail_msg_new (&reconfigure_folder_op, NULL, sizeof (*m));
store = camel_folder_get_parent_store (fb->folder);
@@ -1002,9 +1021,6 @@ mail_local_reconfigure_folder (FolderBrowser *fb)
gtk_signal_connect (GTK_OBJECT (gd), "clicked", reconfigure_clicked, m);
gtk_object_unref (GTK_OBJECT (gui));
- if (!reconfigure_folder_hash)
- reconfigure_folder_hash = g_hash_table_new (g_direct_hash, g_direct_equal);
-
g_hash_table_insert (reconfigure_folder_hash, (gpointer) fb->folder, (gpointer) gd);
gnome_dialog_run_and_close (GNOME_DIALOG (gd));
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 18a5c34723..da004630f7 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -60,6 +60,8 @@ static pthread_cond_t mail_msg_cond = PTHREAD_COND_INITIALIZER;
pthread_t mail_gui_thread;
+static void mail_msg_destroy(EThread *e, EMsg *msg, void *data);
+
void *mail_msg_new(mail_msg_op_t *ops, EMsgPort *reply_port, size_t size)
{
struct _mail_msg *msg;
@@ -257,7 +259,7 @@ mail_msgport_replied(GIOChannel *source, GIOCondition cond, void *d)
if (m->ops->reply_msg)
m->ops->reply_msg(m);
mail_msg_check_error(m);
- mail_msg_destroy(m);
+ mail_msg_destroy(NULL, m, NULL);
}
return TRUE;
e-1.18&id=bf775d92927edc71e3915acadd3dc7a37ec74a22'>Update to 1.4.2.marcus2004-04-203-3/+33 * Update to 1.6.1.marcus2004-04-203-3/+8 * Update to 1.6.2.marcus2004-04-203-3/+4 * Update to 0.8.3.marcus2004-04-163-10/+11 * Add ruby-atk, Ruby binding for ATK.knu2004-04-094-0/+52 * Update to 1.6.1.marcus2004-04-083-3/+10 * Update to 0.8.2.marcus2004-04-073-11/+11 * Presenting GNOME 2.6.0. The FreeBSD GNOME Team feels this our best releasemarcus2004-04-0532-155/+569 * Remove category pkg/COMMENT files in favour of a COMMENT variable in thekris2004-04-022-11/+13 * Update to 0.10.10.adamw2004-03-236-6/+14 * - Add SIZE to GNOME portspav2004-03-186-0/+6 * SIZEify.trevor2004-03-183-0/+3 * Update to 0.10.9.marcus2004-03-176-6/+10 * Update to 1.3.16.marcus2004-03-173-33/+3 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-147-7/+7 * Update to KDE 3.2.1 / QT 3.3.1lofi2004-03-1018-12/+96 * Update to 0.10.8.marcus2004-03-096-6/+10 * Update to 1.3.15.marcus2004-03-092-3/+3 * Add missing dependencies on scrollkeeper.marcus2004-03-041-3/+5 * Add a missing dependency on libxslt.marcus2004-03-041-1/+3 * Update to 1.3.14.marcus2004-03-023-3/+33 * Update to 3.2.4.marcus2004-02-273-3/+47 * Update to 1.3.13.adamw2004-02-258-68/+8 * Update to 0.10.7.adamw2004-02-258-52/+10 * Update to 0.10.6.marcus2004-02-116-6/+8 * Update to 1.3.12.marcus2004-02-112-6/+4 * Add kdeaccessibilitykris2004-02-051-0/+1 * Update to KDE 3.2.0lofi2004-02-056-18/+6 * Update to 3.2.3.marcus2004-02-053-3/+6 * Add kdeaccessibility. This port is set to IGNORE,lofi2004-02-0424-0/+1080 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-0413-4/+13 * patch fromtrevor2004-02-013-6/+6 * The linux-atk port was repo-copied into the accessibility category.trevor2004-01-304-3/+4 * Chase the new locations for gnomespeech and gnomemag.marcus2004-01-221-2/+2 * Repocopy x11/gnopernicus to accessibility/gnopernicus.marcus2004-01-221-1/+1 * Start to populate the new accessibility physical category after respectivemarcus2004-01-2210-9/+17 * Add accessibility and x11-themes as new physical categories.marcus2004-01-202-0/+5 * Add a missing BUILD_DEPENDS on intltool.marcus2004-01-191-0/+2 * Update to 3.2.2.marcus2004-01-164-14/+4 * Update to 1.3.11.marcus2004-01-132-2/+2 * Update to 0.10.5.marcus2004-01-136-4/+10 * Merge a forgotten line from my GNOME 2.5 repo.marcus2004-01-041-1/+1 * Add a missing USE_REINPLACE.marcus2004-01-031-0/+1 * Merge diffs from my GNOME 2.5 repo.marcus2004-01-035-16/+67 * New port: misc/dasher, text entry system (for people with disabilities)edwin2004-01-034-0/+51 * s/rpm2cpio/rpm2cpio.pl/ after the recent update of archivers/rpm2cpio (thenetchild2003-12-123-6/+6 * Fix build on -STABLE.marcus2003-12-102-0/+20 * Update to 0.10.4.marcus2003-12-108-4/+32 * Update to 0.2.8.marcus2003-12-094-4/+4 * Fix build on -STABLE.marcus2003-12-061-0/+11 * Update to 1.3.9.adamw2003-12-063-25/+2 * Fix packing list.trevor2003-11-203-6/+6 * Decrease PORTREVISION from 2 to 0. I hope no one has installedtrevor2003-11-193-0/+3 * new Linux/i386 binary port of Accessibility Toolkit librarytrevor2003-11-199-0/+129