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/chanlist.c4
-rw-r--r--src/fe-gtk/search.c5
-rw-r--r--src/fe-gtk/servlistgui.c1
-rw-r--r--src/fe-gtk/setup.c2
4 files changed, 10 insertions, 2 deletions
diff --git a/src/fe-gtk/chanlist.c b/src/fe-gtk/chanlist.c
index 47b9f1db..00c55b5f 100644
--- a/src/fe-gtk/chanlist.c
+++ b/src/fe-gtk/chanlist.c
@@ -532,6 +532,7 @@ chanlist_minusers (GtkSpinButton *wid, server *serv)
 {
 	serv->gui->chanlist_minusers = gtk_spin_button_get_value_as_int (wid);
 	prefs.hex_gui_chanlist_minusers = serv->gui->chanlist_minusers;
+	save_config();
 
 	if (serv->gui->chanlist_minusers < serv->gui->chanlist_minusers_downloaded)
 	{
@@ -553,6 +554,7 @@ chanlist_maxusers (GtkSpinButton *wid, server *serv)
 {
 	serv->gui->chanlist_maxusers = gtk_spin_button_get_value_as_int (wid);
 	prefs.hex_gui_chanlist_maxusers = serv->gui->chanlist_maxusers;
+	save_config();
 }
 
 static void
@@ -725,6 +727,7 @@ chanlist_opengui (server *serv, int do_refresh)
 		if (prefs.hex_gui_chanlist_minusers < 1 || prefs.hex_gui_chanlist_minusers > 999999)
 		{
 			prefs.hex_gui_chanlist_minusers = 5;
+			save_config();
 		}
 
 		serv->gui->chanlist_minusers = prefs.hex_gui_chanlist_minusers;
@@ -735,6 +738,7 @@ chanlist_opengui (server *serv, int do_refresh)
 		if (prefs.hex_gui_chanlist_maxusers < 1 || prefs.hex_gui_chanlist_maxusers > 999999)
 		{
 			prefs.hex_gui_chanlist_maxusers = 9999;
+			save_config();
 		}
 
 		serv->gui->chanlist_maxusers = prefs.hex_gui_chanlist_maxusers;
diff --git a/src/fe-gtk/search.c b/src/fe-gtk/search.c
index 49c30a14..44cbf3a0 100644
--- a/src/fe-gtk/search.c
+++ b/src/fe-gtk/search.c
@@ -26,6 +26,7 @@
 #include "../common/fe.h"
 #include "../common/util.h"
 #include "../common/hexchatc.h"
+#include "../common/cfgfiles.h"
 #include "gtkutil.h"
 #include "xtext.h"
 #include "maingui.h"
@@ -111,24 +112,28 @@ static void
 search_caseign_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_case_match = (but->active)? 1: 0;
+	save_config();
 }
 
 static void
 search_dirbwd_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_backward = (but->active)? 1: 0;
+	save_config();
 }
 
 static void
 search_regexp_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_regexp = (but->active)? 1: 0;
+	save_config();
 }
 
 static void
 search_highlight_cb (GtkToggleButton * but, session * sess)
 {
 	prefs.hex_text_search_highlight_all = (but->active)? 1: 0;
+	save_config();
 	search_search (sess, NULL);
 }
 
diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c
index 22fe68e4..8d480dc4 100644
--- a/src/fe-gtk/servlistgui.c
+++ b/src/fe-gtk/servlistgui.c
@@ -674,6 +674,7 @@ servlist_savegui (void)
 		sp[0] = 0;	/* spaces will break the login */
 	/* strcpy (prefs.hex_irc_real_name, GTK_ENTRY (entry_greal)->text); */
 	servlist_save ();
+	save_config (); /* For nicks stored in hexchat.conf */
 
 	return 0;
 }
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index 0f59e278..333069cb 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -492,8 +492,6 @@ static const setting general_settings[] =
 	{ST_ENTRY,	N_("Away:"), P_OFFSETNL(hex_away_reason), 0, 0, sizeof prefs.hex_away_reason},
 
 	{ST_HEADER,	N_("Away"),0,0,0},
-	{ST_TOGGLE,	N_("Announce away messages"), P_OFFINTNL(hex_away_show_message),
-					N_("Announce your away messages to all channels."), 0, 0},
 	{ST_TOGGLE,	N_("Show away once"), P_OFFINTNL(hex_away_show_once), N_("Show identical away messages only once."), 0, 0},
 	{ST_TOGGLE,	N_("Automatically unmark away"), P_OFFINTNL(hex_away_auto_unmark), N_("Unmark yourself as away before sending messages."), 0, 0},