Move xgd functions

This commit is contained in:
James Booth
2016-07-24 17:12:09 +01:00
parent 6cc4abedc5
commit 29452f8f1b
17 changed files with 56 additions and 52 deletions

View File

@@ -57,6 +57,7 @@
#include "log.h"
#include "common.h"
#include "command/cmd_ac.h"
#include "config/files.h"
#include "config/accounts.h"
#include "config/preferences.h"
#include "config/theme.h"
@@ -427,7 +428,7 @@ _inp_rl_startup_hook(void)
rl_variable_bind("disable-completion", "on");
// check for and load ~/.config/profanity/inputrc
char *inputrc = prefs_get_inputrc();
char *inputrc = files_get_inputrc_path();
if (inputrc) {
rl_read_init_file(inputrc);
free(inputrc);

View File

@@ -79,7 +79,7 @@ _get_icons(void)
#endif /* ICONS_PATH */
gchar *xdg_config = xdg_get_config_home();
gchar *xdg_config = files_get_xdg_config_home();
icons_dir = g_string_new(xdg_config);
g_free(xdg_config);
g_string_append(icons_dir, "/profanity/icons");