Add max tab length to statusbar

This commit is contained in:
James Booth
2018-03-11 01:18:46 +00:00
parent 9f24f6083b
commit d6e7f389d1
9 changed files with 115 additions and 31 deletions

View File

@@ -680,6 +680,23 @@ prefs_set_statusbartabs(gint value)
_save_prefs();
}
gint
prefs_get_statusbartablen(void)
{
if (!g_key_file_has_key(prefs, PREF_GROUP_UI, "statusbar.tablen", NULL)) {
return 0;
} else {
return g_key_file_get_integer(prefs, PREF_GROUP_UI, "statusbar.tablen", NULL);
}
}
void
prefs_set_statusbartablen(gint value)
{
g_key_file_set_integer(prefs, PREF_GROUP_UI, "statusbar.tablen", value);
_save_prefs();
}
gchar**
prefs_get_plugins(void)
{