summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-22 08:00:55 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-22 08:00:55 +0200
commit9435851dee786a9f5057d324375ecc8a454a99f5 (patch)
tree6b842698151ce3ea65b45555da201716694c5017 /src
parent02dd0ba5602b4e8ce05266f5d1be92ad29d7dd3e (diff)
Get rid of gui_tweaks 8
Diffstat (limited to 'src')
-rw-r--r--src/common/cfgfiles.c2
-rw-r--r--src/common/xchat.h1
-rw-r--r--src/fe-gtk/chanview-tree.c4
-rw-r--r--src/fe-gtk/setup.c1
4 files changed, 7 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 487eadb7..1159434b 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -468,6 +468,7 @@ const struct prefs vars[] = {
 	{"gui_slist_skip", P_OFFINT (slist_skip), TYPE_BOOL},
 	{"gui_tab_chans", P_OFFINT (tabchannels), TYPE_BOOL},
 	{"gui_tab_dialogs", P_OFFINT (privmsgtab), TYPE_BOOL},
+	{"gui_tab_dots", P_OFFINT (gui_tab_dots), TYPE_BOOL},
 	{"gui_tab_icons", P_OFFINT (tab_icons), TYPE_BOOL},
 	{"gui_tab_layout", P_OFFINT (tab_layout), TYPE_INT},
 	{"gui_tab_newtofront", P_OFFINT (newtabstofront), TYPE_INT},
@@ -736,6 +737,7 @@ load_config (void)
 	/* prefs.userhost = 1; */
 	prefs.gui_chanlist_maxusers = 9999;
 	prefs.gui_chanlist_minusers = 5;
+	prefs.gui_tab_dots = 1;
 	prefs.gui_tray = 1;
 	prefs.gui_pane_left_size = 128;		/* with treeview icons we need a bit bigger space */
 	prefs.gui_pane_right_size = 100;
diff --git a/src/common/xchat.h b/src/common/xchat.h
index f3ab0857..267dc31b 100644
--- a/src/common/xchat.h
+++ b/src/common/xchat.h
@@ -294,6 +294,7 @@ struct xchatprefs
 	unsigned int wordwrap;
 	unsigned int gui_compact;
 	unsigned int gui_input_spell;
+	unsigned int gui_tab_dots;
 	unsigned int gui_tray;
 	unsigned int gui_tray_flags;
 	unsigned int gui_tweaks;
diff --git a/src/fe-gtk/chanview-tree.c b/src/fe-gtk/chanview-tree.c
index dee52228..763dea4f 100644
--- a/src/fe-gtk/chanview-tree.c
+++ b/src/fe-gtk/chanview-tree.c
@@ -101,8 +101,10 @@ cv_tree_init (chanview *cv)
 	GTK_WIDGET_UNSET_FLAGS (view, GTK_CAN_FOCUS);
 	gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view), FALSE);
 
-	if (!(prefs.gui_tweaks & 8))
+	if (prefs.gui_tab_dots)
+	{
 		gtk_tree_view_set_enable_tree_lines (GTK_TREE_VIEW (view), TRUE);
+	}
 
 	gtk_container_add (GTK_CONTAINER (win), view);
 
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index 7a89f5be..5f6f7b37 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -335,6 +335,7 @@ static const setting tabs_settings[] =
 	{ST_TOGGLE, N_("Open a new tab when you receive a private message"), P_OFFINTNL(autodialog), 0, 0, 0},
 	{ST_TOGGLE, N_("Sort tabs in alphabetical order"), P_OFFINTNL(tab_sort), 0, 0, 0},
 	{ST_TOGGLE, N_("Show icons in the channel tree"), P_OFFINTNL(tab_icons), 0, 0, 0},
+	{ST_TOGGLE, N_("Show dotted lines in the channel tree"), P_OFFINTNL(gui_tab_dots), 0, 0, 0},
 	{ST_TOGGLE, N_("Smaller text"), P_OFFINTNL(tab_small), 0, 0, 0},
 #if 0
 	{ST_MENU,	N_("Focus new tabs:"), P_OFFINTNL(newtabstofront), 0, focusnewtabsmenu, 0},