aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index d94ff973..bc7e7135 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2014 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2017 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -442,6 +442,13 @@ static void execute_summary_cb (MainWindow *mainwin,
static void update_summary_cb (MainWindow *mainwin,
guint action,
GtkWidget *widget);
+static void open_config_folder_cb(MainWindow *mainwin,
+ guint action,
+ GtkWidget *widget);
+static void open_attachments_folder_cb
+ (MainWindow *mainwin,
+ guint action,
+ GtkWidget *widget);
static void prev_cb (MainWindow *mainwin,
guint action,
@@ -867,6 +874,10 @@ static GtkItemFactoryEntry mainwin_entries[] =
{N_("/_Tools/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_Tools/E_xecute marked process"), "X", execute_summary_cb, 0, NULL},
{N_("/_Tools/---"), NULL, NULL, 0, "<Separator>"},
+ {N_("/_Tools/Op_en configuration folder"),
+ NULL, open_config_folder_cb, 0, NULL},
+ {N_("/_Tools/Open a_ttachments folder"),NULL, open_attachments_folder_cb, 0, NULL},
+ {N_("/_Tools/---"), NULL, NULL, 0, "<Separator>"},
{N_("/_Tools/_Log window"), "<shift><control>L", log_window_show_cb, 0, NULL},
{N_("/_Configuration"), NULL, NULL, 0, "<Branch>"},
@@ -3867,6 +3878,18 @@ static void update_summary_cb(MainWindow *mainwin, guint action,
TRUE);
}
+static void open_config_folder_cb(MainWindow *mainwin, guint action,
+ GtkWidget *widget)
+{
+ execute_open_file(get_rc_dir(), NULL);
+}
+
+static void open_attachments_folder_cb(MainWindow *mainwin, guint action,
+ GtkWidget *widget)
+{
+ execute_open_file(get_mime_tmp_dir(), NULL);
+}
+
static void prev_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
{
MessageView *messageview = mainwin->messageview;