aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/mainwindow.c17
-rw-r--r--src/mainwindow.h3
-rw-r--r--src/prefs_toolbar.c6
-rw-r--r--src/prefs_toolbar.h3
4 files changed, 24 insertions, 5 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)
{
diff --git a/src/mainwindow.h b/src/mainwindow.h
index e7564453..79a371d9 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 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
@@ -78,6 +78,7 @@ struct _MainWindow
GtkWidget *toolbar;
GtkWidget *get_btn;
GtkWidget *getall_btn;
+ GtkWidget *rpop3_btn;
GtkWidget *send_btn;
GtkWidget *compose_btn;
GtkWidget *reply_btn;
diff --git a/src/prefs_toolbar.c b/src/prefs_toolbar.c
index d77dcbc6..2a692360 100644
--- a/src/prefs_toolbar.c
+++ b/src/prefs_toolbar.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 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
@@ -44,6 +44,9 @@ static PrefsDisplayItem all_items[] =
{T_GET_ALL, "get-all", N_("Get all"),
N_("Incorporate new mail of all accounts"),
STOCK_PIXMAP_MAIL_RECEIVE_ALL, NULL, FALSE, FALSE},
+ {T_REMOTE_MAILBOX, "remote-mailbox", N_("Remote mailbox"),
+ N_("POP3 Remote mailbox"),
+ STOCK_PIXMAP_MAIL_RECEIVE, NULL, FALSE, FALSE},
{T_SEND_QUEUE, "send-queue", N_("Send"),
N_("Send queued message(s)"),
STOCK_PIXMAP_MAIL_SEND, NULL, FALSE, FALSE},
@@ -133,6 +136,7 @@ static gint main_available_items[] =
T_SEPARATOR,
T_GET,
T_GET_ALL,
+ T_REMOTE_MAILBOX,
T_SEND_QUEUE,
T_COMPOSE,
T_REPLY,
diff --git a/src/prefs_toolbar.h b/src/prefs_toolbar.h
index 034df03b..56254179 100644
--- a/src/prefs_toolbar.h
+++ b/src/prefs_toolbar.h
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 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
@@ -40,6 +40,7 @@ typedef enum
/* Main */
T_GET,
T_GET_ALL,
+ T_REMOTE_MAILBOX,
T_SEND_QUEUE,
T_COMPOSE,
T_REPLY,