summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/maingui.c4
-rw-r--r--src/fe-gtk/setup.c3
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))