aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-10-07 10:04:17 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-10-07 10:04:17 +0000
commit8d53907a3cedc6c27d48662475bb0e4b28f23ead (patch)
tree3c2f69f32f4e0e4033ea7abe058e67de8833c163 /src/mainwindow.c
parentbf26a8a8d9cd7df740c227d7b7995cd92fd9b268 (diff)
added POP3 remote mailbox button to the toolbar.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2053 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 8a7183aa..3818ff7c 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -141,6 +141,8 @@ static void toolbar_inc_cb (GtkWidget *widget,
gpointer data);
static void toolbar_inc_all_cb (GtkWidget *widget,
gpointer data);
+static void toolbar_rpop3_cb (GtkWidget *widget,
+ gpointer data);
static void toolbar_send_cb (GtkWidget *widget,
gpointer data);
@@ -1936,7 +1938,7 @@ void main_window_set_toolbar_sensitive(MainWindow *mainwin)
struct {
GtkWidget *widget;
SensitiveCond cond;
- } entry[19];
+ } entry[20];
#define SET_WIDGET_COND(w, c) \
{ \
@@ -1947,6 +1949,7 @@ void main_window_set_toolbar_sensitive(MainWindow *mainwin)
SET_WIDGET_COND(mainwin->get_btn, M_HAVE_ACCOUNT|M_UNLOCKED);
SET_WIDGET_COND(mainwin->getall_btn, M_HAVE_ACCOUNT|M_UNLOCKED);
+ SET_WIDGET_COND(mainwin->rpop3_btn, M_HAVE_ACCOUNT|M_UNLOCKED);
SET_WIDGET_COND(mainwin->send_btn, M_HAVE_ACCOUNT|M_HAVE_QUEUED_MSG);
SET_WIDGET_COND(mainwin->compose_btn, M_HAVE_ACCOUNT);
SET_WIDGET_COND(mainwin->reply_btn,
@@ -2548,6 +2551,7 @@ static PrefsToolbarItem items[] =
{T_EXECUTE, FALSE, toolbar_exec_cb},
{T_COMMON_PREFS, FALSE, toolbar_prefs_common_cb},
{T_ACCOUNT_PREFS, FALSE, toolbar_prefs_account_cb},
+ {T_REMOTE_MAILBOX, FALSE, toolbar_rpop3_cb},
{-1, FALSE, NULL}
};
@@ -2609,7 +2613,8 @@ static GtkWidget *main_window_toolbar_create_from_list(MainWindow *mainwin,
items[16].data = &mainwin->exec_btn;
items[17].data = &mainwin->prefs_common_btn;
items[18].data = &mainwin->prefs_account_btn;
- for (i = 0; i <= 18; i++)
+ items[19].data = &mainwin->rpop3_btn;
+ for (i = 0; i <= 19; i++)
*(GtkWidget **)items[i].data = NULL;
mainwin->reply_combo = NULL;
mainwin->fwd_combo = NULL;
@@ -2772,6 +2777,14 @@ static void toolbar_inc_all_cb (GtkWidget *widget,
inc_all_account_mail_cb(mainwin, 0, NULL);
}
+static void toolbar_rpop3_cb (GtkWidget *widget,
+ gpointer data)
+{
+ MainWindow *mainwin = (MainWindow *)data;
+
+ rpop3_cb(mainwin, 0, NULL);
+}
+
static void toolbar_send_cb (GtkWidget *widget,
gpointer data)
{