diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-08-10 02:26:46 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-08-10 02:26:46 +0000 |
commit | aa4fdbfbc9a10cb344e3bad9d58fa438bbb4cda0 (patch) | |
tree | 5b91a2a3dd950ada0e61a9c5eb455928835cf405 | |
parent | 30ce92c4bb6af96dfdbd4bb4eeb0cb5df74a684f (diff) |
modified Common prefs - Details - Interface.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1124 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.ja | 7 | ||||
-rw-r--r-- | src/prefs_common_dialog.c | 3 | ||||
-rw-r--r-- | src/prefs_ui.c | 8 | ||||
-rw-r--r-- | src/prefs_ui.h | 9 |
5 files changed, 34 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2006-08-10 + + * src/prefs_ui.[ch] + src/prefs_common_dialog.c: link the state of 'Open first unread + message when entering a folder' with 'Always open messages in + summary when selected'. + 2006-08-09 * src/compose.c: compose_set_ext_editor_sensitive(): also set the diff --git a/ChangeLog.ja b/ChangeLog.ja index 2de5c4e5..c7df6b39 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,10 @@ +2006-08-10 + + * src/prefs_ui.[ch] + src/prefs_common_dialog.c: 「フォルダに入ったときに最初の未読 + メッセージを開く」の状態を「サマリでメッセージを選択したとき常に + 開く」とリンクさせるようにした。 + 2006-08-09 * src/compose.c: compose_set_ext_editor_sensitive(): diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c index 9d1d6323..13f4e311 100644 --- a/src/prefs_common_dialog.c +++ b/src/prefs_common_dialog.c @@ -2083,6 +2083,9 @@ static void prefs_details_create(void) (vbox2, checkbtn_openunread, _("Open first unread message when entering a folder")); + SET_TOGGLE_SENSITIVITY_REV + (checkbtn_always_show_msg, checkbtn_openunread); + PACK_CHECK_BUTTON (vbox2, checkbtn_mark_as_read_on_newwin, _("Only mark message as read when opened in new window")); diff --git a/src/prefs_ui.c b/src/prefs_ui.c index e8bc8227..5984d6c3 100644 --- a/src/prefs_ui.c +++ b/src/prefs_ui.c @@ -106,6 +106,14 @@ void prefs_button_toggled(GtkToggleButton *toggle_btn, GtkWidget *widget) gtk_widget_set_sensitive(widget, is_active); } +void prefs_button_toggled_rev(GtkToggleButton *toggle_btn, GtkWidget *widget) +{ + gboolean is_active; + + is_active = gtk_toggle_button_get_active(toggle_btn); + gtk_widget_set_sensitive(widget, !is_active); +} + void prefs_register_ui(PrefParam *param, PrefsUIData *ui_data) { GHashTable *param_table; diff --git a/src/prefs_ui.h b/src/prefs_ui.h index bc33e6b9..f0eadeb6 100644 --- a/src/prefs_ui.h +++ b/src/prefs_ui.h @@ -141,11 +141,20 @@ struct _PrefsDialog G_CALLBACK(prefs_button_toggled), targetwid); \ } +#define SET_TOGGLE_SENSITIVITY_REV(togglewid, targetwid) \ +{ \ + gtk_widget_set_sensitive(targetwid, TRUE); \ + g_signal_connect(G_OBJECT(togglewid), "toggled", \ + G_CALLBACK(prefs_button_toggled_rev), targetwid); \ +} + void prefs_dialog_create (PrefsDialog *dialog); void prefs_dialog_destroy (PrefsDialog *dialog); void prefs_button_toggled (GtkToggleButton *toggle_btn, GtkWidget *widget); +void prefs_button_toggled_rev (GtkToggleButton *toggle_btn, + GtkWidget *widget); void prefs_register_ui (PrefParam *param, PrefsUIData *ui_data); |