summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-22 08:24:52 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-22 08:24:52 +0200
commit1665443062997efdca5c2c8b75e3aa4059e85b69 (patch)
tree53f6c4070664625d07dcba1b14d2bc1030aa2cd7 /src
parent6cd5d086bb21e783c2210e4921edc8c7bdfbe677 (diff)
Get rid of gui_tweaks 4
Diffstat (limited to 'src')
-rw-r--r--src/common/cfgfiles.c1
-rw-r--r--src/common/xchat.h1
-rw-r--r--src/fe-gtk/maingui.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 1159434b..6c07149b 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -499,6 +499,7 @@ const struct prefs vars[] = {
 	{"gui_win_left", P_OFFINT (mainwindow_left), TYPE_INT},
 	{"gui_win_modes", P_OFFINT (gui_win_modes), TYPE_BOOL},
 	{"gui_win_save", P_OFFINT (mainwindow_save), TYPE_BOOL},
+	{"gui_win_swap", P_OFFINT (gui_win_swap), TYPE_BOOL},
 	{"gui_win_state", P_OFFINT (gui_win_state), TYPE_INT},
 	{"gui_win_top", P_OFFINT (mainwindow_top), TYPE_INT},
 	{"gui_win_ucount", P_OFFINT (gui_win_ucount), TYPE_BOOL},
diff --git a/src/common/xchat.h b/src/common/xchat.h
index 267dc31b..27ffe265 100644
--- a/src/common/xchat.h
+++ b/src/common/xchat.h
@@ -300,6 +300,7 @@ struct xchatprefs
 	unsigned int gui_tweaks;
 	unsigned int gui_ulist_icons;
 	unsigned int gui_win_modes;
+	unsigned int gui_win_swap;
 	unsigned int gui_win_ucount;
 	unsigned int throttle;
 	unsigned int topicbar;
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index f35e86ed..d69f9ee0 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -2591,7 +2591,7 @@ mg_create_center (session *sess, session_gui *gui, GtkWidget *box)
 	/* sep between xtext and right side */
 	gui->hpane_right = gtk_hpaned_new ();
 
-	if (prefs.gui_tweaks & 4)
+	if (prefs.gui_win_swap)
 	{
 		gtk_paned_pack2 (GTK_PANED (gui->hpane_left), gui->vpane_left, FALSE, TRUE);
 		gtk_paned_pack1 (GTK_PANED (gui->hpane_left), gui->hpane_right, TRUE, TRUE);