diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-26 09:11:35 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-09-26 09:11:35 +0000 |
commit | 3f9199ca083813e08de4299a5fb966bc0c716420 (patch) | |
tree | eef2a25209041d9bf29591da89915aab2f3a2b98 /src/prefs_common_dialog.c | |
parent | b94e6a1d8c18513d022cd1ff57a1924de7be1b84 (diff) |
implemented tray icon in Win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1189 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_common_dialog.c')
-rw-r--r-- | src/prefs_common_dialog.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c index 13f4e311..0a0e4e20 100644 --- a/src/prefs_common_dialog.c +++ b/src/prefs_common_dialog.c @@ -188,8 +188,9 @@ static struct Interface { GtkWidget *checkbtn_immedexec; #ifndef G_OS_WIN32 GtkWidget *checkbtn_comply_gnome_hig; - GtkWidget *checkbtn_show_trayicon; #endif + GtkWidget *checkbtn_show_trayicon; + GtkWidget *checkbtn_minimize_to_tray; } interface; static struct Other { @@ -457,9 +458,11 @@ static PrefsUIData ui_data[] = { #ifndef G_OS_WIN32 {"comply_gnome_hig", &interface.checkbtn_comply_gnome_hig, prefs_set_data_from_toggle, prefs_set_toggle}, +#endif {"show_trayicon", &interface.checkbtn_show_trayicon, prefs_set_data_from_toggle, prefs_set_toggle}, -#endif + {"minimize_to_tray", &interface.checkbtn_minimize_to_tray, + prefs_set_data_from_toggle, prefs_set_toggle}, /* Other */ {"receive_dialog_mode", &other.optmenu_recvdialog, @@ -2051,8 +2054,9 @@ static void prefs_details_create(void) GtkWidget *label; #ifndef G_OS_WIN32 GtkWidget *checkbtn_comply_gnome_hig; - GtkWidget *checkbtn_show_trayicon; #endif + GtkWidget *checkbtn_show_trayicon; + GtkWidget *checkbtn_minimize_to_tray; GtkWidget *button_keybind; @@ -2115,16 +2119,20 @@ static void prefs_details_create(void) _("Messages will be marked until execution " "if this is turned off.")); -#ifndef G_OS_WIN32 vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox2); gtk_box_pack_start (GTK_BOX (vbox_tab), vbox2, FALSE, FALSE, 0); +#ifndef G_OS_WIN32 PACK_CHECK_BUTTON (vbox2, checkbtn_comply_gnome_hig, _("Make the order of buttons comply with GNOME HIG")); +#endif PACK_CHECK_BUTTON (vbox2, checkbtn_show_trayicon, _("Display tray icon")); -#endif + PACK_CHECK_BUTTON (vbox2, checkbtn_minimize_to_tray, + _("Minimize to tray icon")); + SET_TOGGLE_SENSITIVITY (checkbtn_show_trayicon, + checkbtn_minimize_to_tray); hbox1 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox1); @@ -2157,8 +2165,9 @@ static void prefs_details_create(void) #ifndef G_OS_WIN32 interface.checkbtn_comply_gnome_hig = checkbtn_comply_gnome_hig; - interface.checkbtn_show_trayicon = checkbtn_show_trayicon; #endif + interface.checkbtn_show_trayicon = checkbtn_show_trayicon; + interface.checkbtn_minimize_to_tray = checkbtn_minimize_to_tray; } static GtkWidget *prefs_other_create(void) |