diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-22 08:37:28 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-22 08:37:28 +0200 |
commit | 4f68ac6cc084676351b0e15dbede4bd10ce86042 (patch) | |
tree | 2d8fa7762e9d34df9693b40a1f22ffb9ac7c7311 /src/fe-gtk | |
parent | 445e8c006e1e09512afbf877eb0104c8e53eb152 (diff) |
Get rid of ALL gui_tweaks
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/maingui.c | 4 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index d69f9ee0..c52ddb2f 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -3046,7 +3046,7 @@ mg_create_topwindow (session *sess) if (!prefs.userlistbuttons) gtk_widget_hide (sess->gui->button_box); - if (prefs.gui_tweaks & 2) + if (prefs.gui_input_nick) gtk_widget_hide (sess->gui->nick_box); mg_decide_userlist (sess, FALSE); @@ -3149,7 +3149,7 @@ mg_create_tabwindow (session *sess) if (!prefs.userlistbuttons) gtk_widget_hide (sess->gui->button_box); - if (prefs.gui_tweaks & 2) + if (prefs.gui_input_nick) gtk_widget_hide (sess->gui->nick_box); mg_place_userlist_and_chanview (sess->gui); diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index ed7d43df..a727de7f 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -212,6 +212,7 @@ static const setting inputbox_settings[] = { {ST_HEADER, N_("Input Box"),0,0,0}, {ST_TOGGLE, N_("Use the Text box font and colors"), P_OFFINTNL(style_inputbox),0,0,0}, + {ST_TOGGLE, N_("Show nick box"), P_OFFINTNL(gui_input_nick),0,0,0}, #if defined(USE_GTKSPELL) || defined(USE_LIBSEXY) {ST_TOGGLE, N_("Spell checking"), P_OFFINTNL(gui_input_spell),0,0,0}, {ST_ENTRY, N_("Dictionaries to use:"), P_OFFSETNL(spell_langs),0,0,sizeof prefs.spell_langs}, @@ -2205,6 +2206,8 @@ setup_apply (struct xchatprefs *pr) #endif if (DIFF (paned_userlist)) noapply = TRUE; + if (DIFF (gui_input_nick)) + noapply = TRUE; if (DIFF (lagometer)) noapply = TRUE; if (DIFF (throttlemeter)) |