aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_common_dialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-13 09:20:58 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-13 09:20:58 +0000
commitf4ef5b2fe53d60d2d9bd4ed4f3c0b3f9c7be53bb (patch)
tree5a62bfb178c4455df4f262655e6031d70b35a788 /src/prefs_common_dialog.c
parent80072d1ee0161c430f44b40ad52d3038a039d364 (diff)
perform show/hide on trayicon click. Implemented popup menu on trayicon.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@896 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_common_dialog.c')
-rw-r--r--src/prefs_common_dialog.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c
index 01451602..0f564897 100644
--- a/src/prefs_common_dialog.c
+++ b/src/prefs_common_dialog.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 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
@@ -187,6 +187,7 @@ static struct Interface {
GtkWidget *checkbtn_immedexec;
#ifndef G_OS_WIN32
GtkWidget *checkbtn_comply_gnome_hig;
+ GtkWidget *checkbtn_show_trayicon;
#endif
} interface;
@@ -457,6 +458,8 @@ static PrefsUIData ui_data[] = {
#ifndef G_OS_WIN32
{"comply_gnome_hig", &interface.checkbtn_comply_gnome_hig,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"show_trayicon", &interface.checkbtn_show_trayicon,
+ prefs_set_data_from_toggle, prefs_set_toggle},
#endif
/* Other */
@@ -2016,6 +2019,7 @@ static void prefs_details_create(void)
GtkWidget *label;
#ifndef G_OS_WIN32
GtkWidget *checkbtn_comply_gnome_hig;
+ GtkWidget *checkbtn_show_trayicon;
#endif
GtkWidget *button_keybind;
@@ -2077,8 +2081,14 @@ static void prefs_details_create(void)
"if this is turned off."));
#ifndef G_OS_WIN32
- PACK_CHECK_BUTTON (vbox_tab, checkbtn_comply_gnome_hig,
+ vbox2 = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox2);
+ gtk_box_pack_start (GTK_BOX (vbox_tab), vbox2, FALSE, FALSE, 0);
+
+ PACK_CHECK_BUTTON (vbox2, checkbtn_comply_gnome_hig,
_("Make the order of buttons comply with GNOME HIG"));
+ PACK_CHECK_BUTTON (vbox2, checkbtn_show_trayicon,
+ _("Display tray icon"));
#endif
hbox1 = gtk_hbox_new (FALSE, 8);
@@ -2112,6 +2122,7 @@ 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
}