summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-10 19:29:12 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-10 19:29:12 +0100
commit475607826343340f509cf8a3f194b11e469ff8ad (patch)
tree9aee2368ec270c9adc83b1d8674e6449d20d4603 /src/fe-gtk/maingui.c
parent5781cd0c44350907b65f855fcd22e338509e35b0 (diff)
Explode gui_tray_flags
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index e6817dc6..a71c2cbf 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -504,7 +504,7 @@ mg_windowstate_cb (GtkWindow *wid, GdkEventWindowState *event, gpointer userdata
 
 	if ((event->changed_mask & GDK_WINDOW_STATE_ICONIFIED) &&
 		 (event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) &&
-		 (prefs.hex_gui_tray_flags & 4))
+		 prefs.hex_gui_tray_minimize)
 	{
 		tray_toggle_visibility (TRUE);
 		gtk_window_deiconify (wid);
@@ -1325,7 +1325,7 @@ mg_open_quit_dialog (gboolean minimize_button)
 	case 1: /* minimize to tray */
 		if (GTK_TOGGLE_BUTTON (checkbutton1)->active)
 		{
-			prefs.hex_gui_tray_flags |= 1;
+			prefs.hex_gui_tray_close = 1;
 			/*prefs.hex_gui_quit_dialog = 0;*/
 		}
 		/* force tray icon ON, if not already */
@@ -3074,7 +3074,7 @@ mg_tabwindow_de_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data)
 	GSList *list;
 	session *sess;
 
-	if ((prefs.hex_gui_tray_flags & 1) && tray_toggle_visibility (FALSE))
+	if (prefs.hex_gui_tray_close && tray_toggle_visibility (FALSE))
 		return TRUE;
 
 	/* check for remaining toplevel windows */