Stop ctrl-c quitting with /ctrlc off

This commit is contained in:
James Booth
2012-11-23 02:00:51 +00:00
parent 2a69f8d23f
commit 721df8ca48
5 changed files with 59 additions and 4 deletions

View File

@@ -132,6 +132,19 @@ prefs_set_beep(gboolean value)
_save_prefs();
}
gboolean
prefs_get_ctrlc(void)
{
return g_key_file_get_boolean(prefs, "ui", "ctrlc", NULL);
}
void
prefs_set_ctrlc(gboolean value)
{
g_key_file_set_boolean(prefs, "ui", "ctrlc", value);
_save_prefs();
}
gchar *
prefs_get_theme(void)
{