aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-09 07:00:28 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-09 07:00:28 +0000
commitef7ee23da99c2f2c7b83e65cba357f2d5b9bb731 (patch)
tree507d38190f3ea505f2d73c6f7ea7228a160ed796
parente2571d34b0d0e29406dad2303bae0dafb6b2252a (diff)
fixed remembering of the state of the visibility of MessageView.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@157 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/mainwindow.c24
3 files changed, 27 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 1da73af2..5c553f41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-03-09
+ * src/mainwindow.c: fixed remembering of the state of the visibility
+ of MessageView.
+
+2005-03-09
+
* src/compose.c: compose_attach_cb(): enabled multiple file selection.
* src/main.c: migrate_old_config(): copy also mime.types.
* src/filesel.[ch]: filesel_select_files(): returns multiple selected
diff --git a/ChangeLog.ja b/ChangeLog.ja
index af55be9b..28357d58 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2005-03-09
+ * src/mainwindow.c: MessageView の表示状態を記憶していなかったのを
+ 修正。
+
+2005-03-09
+
* src/compose.c: compose_attach_cb(): 複数ファイルの選択ができる
ようにした。
* src/main.c: migrate_old_config(): mime.types もコピーするようにした。
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 27ac5969..db8b7086 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1338,17 +1338,20 @@ void main_window_toggle_message_view(MainWindow *mainwin)
gtk_widget_ref(vpaned);
gtkut_container_remove(GTK_CONTAINER(container), vpaned);
gtk_widget_reparent(GTK_WIDGET_PTR(summaryview), container);
- gtk_arrow_set(GTK_ARROW(summaryview->toggle_arrow),
- GTK_ARROW_UP, GTK_SHADOW_OUT);
} else {
mainwin->messageview->visible = TRUE;
gtk_widget_reparent(GTK_WIDGET_PTR(summaryview), vpaned);
gtk_container_add(GTK_CONTAINER(container), vpaned);
gtk_widget_unref(vpaned);
- gtk_arrow_set(GTK_ARROW(summaryview->toggle_arrow),
- GTK_ARROW_DOWN, GTK_SHADOW_OUT);
}
+ if (messageview_is_visible(mainwin->messageview))
+ gtk_arrow_set(GTK_ARROW(mainwin->summaryview->toggle_arrow),
+ GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ else
+ gtk_arrow_set(GTK_ARROW(mainwin->summaryview->toggle_arrow),
+ GTK_ARROW_UP, GTK_SHADOW_OUT);
+
if (mainwin->messageview->visible == FALSE)
messageview_clear(mainwin->messageview);
@@ -2018,6 +2021,13 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
break;
}
+ if (messageview_is_visible(mainwin->messageview))
+ gtk_arrow_set(GTK_ARROW(mainwin->summaryview->toggle_arrow),
+ GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ else
+ gtk_arrow_set(GTK_ARROW(mainwin->summaryview->toggle_arrow),
+ GTK_ARROW_UP, GTK_SHADOW_OUT);
+
gtk_widget_set_uposition(mainwin->window,
prefs_common.mainwin_x,
prefs_common.mainwin_y);
@@ -2037,9 +2047,9 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
gtk_widget_set_sensitive(menuitem, ((type & SEPARATE_FOLDER) != 0));
menuitem = gtk_item_factory_get_item
(ifactory, "/View/Show or hide/Message view");
- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem),
- (type & SEPARATE_MESSAGE) == 0 ? TRUE :
- prefs_common.msgview_visible);
+ gtk_check_menu_item_set_active
+ (GTK_CHECK_MENU_ITEM(menuitem),
+ messageview_is_visible(mainwin->messageview));
menuitem = gtk_item_factory_get_item
(ifactory, "/View/Separate folder tree");