Revision 1466 src/prefs_common_dialog.c
| prefs_common_dialog.c (revision 1466) | ||
|---|---|---|
| 194 | 194 |
#endif |
| 195 | 195 |
GtkWidget *checkbtn_show_trayicon; |
| 196 | 196 |
GtkWidget *checkbtn_minimize_to_tray; |
| 197 |
GtkWidget *checkbtn_tray_toggle_window; |
|
| 197 | 198 |
} interface; |
| 198 | 199 |
|
| 199 | 200 |
static struct Other {
|
| ... | ... | |
| 475 | 476 |
prefs_set_data_from_toggle, prefs_set_toggle}, |
| 476 | 477 |
{"minimize_to_tray", &interface.checkbtn_minimize_to_tray,
|
| 477 | 478 |
prefs_set_data_from_toggle, prefs_set_toggle}, |
| 479 |
{"toggle_window_on_trayicon_click",
|
|
| 480 |
&interface.checkbtn_tray_toggle_window, |
|
| 481 |
prefs_set_data_from_toggle, prefs_set_toggle}, |
|
| 478 | 482 |
|
| 479 | 483 |
/* Other */ |
| 480 | 484 |
{"receive_dialog_mode", &other.optmenu_recvdialog,
|
| ... | ... | |
| 2079 | 2083 |
#endif |
| 2080 | 2084 |
GtkWidget *checkbtn_show_trayicon; |
| 2081 | 2085 |
GtkWidget *checkbtn_minimize_to_tray; |
| 2086 |
GtkWidget *checkbtn_tray_toggle_window; |
|
| 2082 | 2087 |
|
| 2083 | 2088 |
GtkWidget *button_keybind; |
| 2084 | 2089 |
|
| ... | ... | |
| 2159 | 2164 |
_("Display tray icon"));
|
| 2160 | 2165 |
PACK_CHECK_BUTTON (vbox2, checkbtn_minimize_to_tray, |
| 2161 | 2166 |
_("Minimize to tray icon"));
|
| 2167 |
PACK_CHECK_BUTTON (vbox2, checkbtn_tray_toggle_window, |
|
| 2168 |
_("Toggle window on trayicon click"));
|
|
| 2162 | 2169 |
SET_TOGGLE_SENSITIVITY (checkbtn_show_trayicon, |
| 2163 | 2170 |
checkbtn_minimize_to_tray); |
| 2171 |
SET_TOGGLE_SENSITIVITY (checkbtn_show_trayicon, |
|
| 2172 |
checkbtn_tray_toggle_window); |
|
| 2164 | 2173 |
|
| 2165 | 2174 |
hbox1 = gtk_hbox_new (FALSE, 8); |
| 2166 | 2175 |
gtk_widget_show (hbox1); |
| ... | ... | |
| 2196 | 2205 |
#ifndef G_OS_WIN32 |
| 2197 | 2206 |
interface.checkbtn_comply_gnome_hig = checkbtn_comply_gnome_hig; |
| 2198 | 2207 |
#endif |
| 2199 |
interface.checkbtn_show_trayicon = checkbtn_show_trayicon; |
|
| 2200 |
interface.checkbtn_minimize_to_tray = checkbtn_minimize_to_tray; |
|
| 2208 |
interface.checkbtn_show_trayicon = checkbtn_show_trayicon; |
|
| 2209 |
interface.checkbtn_minimize_to_tray = checkbtn_minimize_to_tray; |
|
| 2210 |
interface.checkbtn_tray_toggle_window = checkbtn_tray_toggle_window; |
|
| 2201 | 2211 |
} |
| 2202 | 2212 |
|
| 2203 | 2213 |
static GtkWidget *prefs_other_create(void) |
Also available in: Unified diff