1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

Get rid of gui_tweaks 8

This commit is contained in:
Berke Viktor 2012-10-22 08:00:55 +02:00
parent 02dd0ba560
commit 9435851dee
4 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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},