aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/rpop3.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c8a44c4..a8c4c0ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-30
+
+ * src/rpop3.c: made button sensitivity and Stop/Refresh label
+ consistent.
+
2013-01-25
* libsylph/mh.c: mh_scan_tree_recursive(): limit the recursion level
diff --git a/src/rpop3.c b/src/rpop3.c
index a02b691f..c67ab9a0 100644
--- a/src/rpop3.c
+++ b/src/rpop3.c
@@ -1079,7 +1079,8 @@ static gint rpop3_session_recv_data_as_file_finished(Session *session,
(rpop3_window.delete_btn, TRUE);
if (pop3_session->cur_msg == 1)
gtk_widget_set_sensitive(rpop3_window.stop_btn, FALSE);
- gtk_button_set_label(GTK_BUTTON(rpop3_window.stop_btn), GTK_STOCK_REFRESH);
+ else
+ gtk_button_set_label(GTK_BUTTON(rpop3_window.stop_btn), GTK_STOCK_REFRESH);
g_object_set(rpop3_window.recv_action,
"sensitive", TRUE, NULL);
g_object_set(rpop3_window.open_action,
@@ -1273,7 +1274,10 @@ static void rpop3_read_next(GtkButton *button, gpointer data)
rpop3_window.session->cur_msg = i;
rpop3_window.stop_load = FALSE;
-
+
+ gtk_widget_set_sensitive(rpop3_window.recv_btn, FALSE);
+ gtk_widget_set_sensitive(rpop3_window.open_btn, FALSE);
+ gtk_widget_set_sensitive(rpop3_window.delete_btn, FALSE);
gtk_button_set_label(GTK_BUTTON(rpop3_window.stop_btn), GTK_STOCK_STOP);
gtk_widget_set_sensitive(rpop3_window.stop_btn, TRUE);
g_object_set(rpop3_window.update_action, "sensitive", FALSE, NULL);