[Commits] [SCM] claws branch, master, updated. 3.12.0-8-g69d2e1d
charles at claws-mail.org
charles at claws-mail.org
Tue Jul 21 04:57:07 CEST 2015
The branch, master has been updated
via 69d2e1d0e9599636cde034e6c7e8967b75f4980c (commit)
via 38ea0d67f58b56a028a50e5c421e1d29c95298e4 (commit)
from 897a5ed7241c371232c816d26c4b577dd36899e3 (commit)
Summary of changes:
src/plugins/managesieve/sieve_editor.c | 3 ++-
src/plugins/managesieve/sieve_editor.h | 1 +
src/plugins/managesieve/sieve_manager.c | 9 ++++++++-
src/plugins/managesieve/sieve_manager.h | 1 +
src/plugins/managesieve/sieve_plugin.c | 3 +++
5 files changed, 15 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 69d2e1d0e9599636cde034e6c7e8967b75f4980c
Author: Charles Lehner <charles at claws-mail.org>
Date: Mon Jul 20 22:39:54 2015 -0400
managesieve: ensure space above Refresh button
diff --git a/src/plugins/managesieve/sieve_manager.c b/src/plugins/managesieve/sieve_manager.c
index 2dcdf71..afdb36a 100644
--- a/src/plugins/managesieve/sieve_manager.c
+++ b/src/plugins/managesieve/sieve_manager.c
@@ -731,7 +731,7 @@ static SieveManagerPage *sieve_manager_page_new()
/* Buttons */
- vbox_allbuttons = gtk_vbox_new (FALSE, 0);
+ vbox_allbuttons = gtk_vbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (hbox), vbox_allbuttons, FALSE, FALSE, 0);
/* buttons that depend on there being a connection */
commit 38ea0d67f58b56a028a50e5c421e1d29c95298e4
Author: Charles Lehner <charles at claws-mail.org>
Date: Mon Jul 20 22:23:15 2015 -0400
managesieve: close windows when unloading
fixes crash on plugin unload
diff --git a/src/plugins/managesieve/sieve_editor.c b/src/plugins/managesieve/sieve_editor.c
index e085dcb..f8b43ee 100644
--- a/src/plugins/managesieve/sieve_editor.c
+++ b/src/plugins/managesieve/sieve_editor.c
@@ -106,8 +106,9 @@ static GtkActionEntry sieve_editor_entries[] =
void sieve_editors_close()
{
if (editors) {
- g_slist_free_full(editors, (GDestroyNotify)sieve_editor_close);
+ GSList *list = editors;
editors = NULL;
+ g_slist_free_full(list, (GDestroyNotify)sieve_editor_close);
}
}
diff --git a/src/plugins/managesieve/sieve_editor.h b/src/plugins/managesieve/sieve_editor.h
index 60d3d86..18228c4 100644
--- a/src/plugins/managesieve/sieve_editor.h
+++ b/src/plugins/managesieve/sieve_editor.h
@@ -45,6 +45,7 @@ struct SieveEditorPage
gpointer on_load_error_data;
};
+void sieve_editors_close();
SieveEditorPage *sieve_editor_new(SieveSession *session, gchar *script_name);
SieveEditorPage *sieve_editor_get(SieveSession *session, gchar *script_name);
void sieve_editor_load(SieveEditorPage *page,
diff --git a/src/plugins/managesieve/sieve_manager.c b/src/plugins/managesieve/sieve_manager.c
index b2bff52..2dcdf71 100644
--- a/src/plugins/managesieve/sieve_manager.c
+++ b/src/plugins/managesieve/sieve_manager.c
@@ -80,6 +80,13 @@ static GSList *manager_pages = NULL;
if ((page = (SieveManagerPage *)cur->data) && \
page->active_session == session)
+void sieve_managers_done()
+{
+ GSList *list = manager_pages;
+ manager_pages = NULL;
+ g_slist_free_full(list, (GDestroyNotify)sieve_manager_done);
+}
+
static void filters_list_clear(SieveManagerPage *page)
{
GtkListStore *list_store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(page->filters_list)));
diff --git a/src/plugins/managesieve/sieve_manager.h b/src/plugins/managesieve/sieve_manager.h
index 58f08f0..fb5c9ba 100644
--- a/src/plugins/managesieve/sieve_manager.h
+++ b/src/plugins/managesieve/sieve_manager.h
@@ -36,6 +36,7 @@ struct SieveManagerPage
gboolean got_list;
};
+void sieve_managers_done(void);
void sieve_manager_show(void);
void sieve_manager_done(SieveManagerPage *page);
void sieve_manager_script_created(SieveSession *session,
diff --git a/src/plugins/managesieve/sieve_plugin.c b/src/plugins/managesieve/sieve_plugin.c
index 363a584..09264fc 100644
--- a/src/plugins/managesieve/sieve_plugin.c
+++ b/src/plugins/managesieve/sieve_plugin.c
@@ -31,6 +31,7 @@
#include "log.h"
#include "sieve_prefs.h"
#include "sieve_manager.h"
+#include "sieve_editor.h"
#define PLUGIN_NAME (_("ManageSieve"))
@@ -84,6 +85,8 @@ gboolean plugin_done(void)
MainWindow *mainwin = mainwindow_get_mainwindow();
sieve_prefs_done();
+ sieve_managers_done();
+ sieve_editors_close();
sieve_sessions_close();
if (mainwin)
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list