[gtksourceview] utils: rename get_default_dirs()



commit 26f0d3650147069a34e18817dc5f5a43c5864dea
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Sep 24 09:30:21 2017 +0200

    utils: rename get_default_dirs()

 gtksourceview/gtksourcelanguagemanager.c    |    4 ++--
 gtksourceview/gtksourcestyleschememanager.c |    8 ++++----
 gtksourceview/gtksourceview-utils.c         |    4 ++--
 gtksourceview/gtksourceview-utils.h         |    4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguagemanager.c b/gtksourceview/gtksourcelanguagemanager.c
index a6a4332..39c0ae4 100644
--- a/gtksourceview/gtksourcelanguagemanager.c
+++ b/gtksourceview/gtksourcelanguagemanager.c
@@ -260,7 +260,7 @@ gtk_source_language_manager_set_search_path (GtkSourceLanguageManager *lm,
        tmp = lm->priv->lang_dirs;
 
        if (dirs == NULL)
-               lm->priv->lang_dirs = _gtk_source_view_get_default_dirs (LANGUAGE_DIR, TRUE);
+               lm->priv->lang_dirs = _gtk_source_utils_get_default_dirs (LANGUAGE_DIR, TRUE);
        else
                lm->priv->lang_dirs = g_strdupv (dirs);
 
@@ -285,7 +285,7 @@ gtk_source_language_manager_get_search_path (GtkSourceLanguageManager *lm)
        g_return_val_if_fail (GTK_SOURCE_IS_LANGUAGE_MANAGER (lm), NULL);
 
        if (lm->priv->lang_dirs == NULL)
-               lm->priv->lang_dirs = _gtk_source_view_get_default_dirs (LANGUAGE_DIR, TRUE);
+               lm->priv->lang_dirs = _gtk_source_utils_get_default_dirs (LANGUAGE_DIR, TRUE);
 
        return (const gchar * const *)lm->priv->lang_dirs;
 }
diff --git a/gtksourceview/gtksourcestyleschememanager.c b/gtksourceview/gtksourcestyleschememanager.c
index 244e3c1..bfc2c67 100644
--- a/gtksourceview/gtksourcestyleschememanager.c
+++ b/gtksourceview/gtksourcestyleschememanager.c
@@ -423,7 +423,7 @@ gtk_source_style_scheme_manager_set_search_path (GtkSourceStyleSchemeManager  *m
        tmp = manager->priv->search_path;
 
        if (path == NULL)
-               manager->priv->search_path = _gtk_source_view_get_default_dirs (STYLES_DIR, FALSE);
+               manager->priv->search_path = _gtk_source_utils_get_default_dirs (STYLES_DIR, FALSE);
        else
                manager->priv->search_path = g_strdupv (path);
 
@@ -451,7 +451,7 @@ gtk_source_style_scheme_manager_append_search_path (GtkSourceStyleSchemeManager
        g_return_if_fail (path != NULL);
 
        if (manager->priv->search_path == NULL)
-               manager->priv->search_path = _gtk_source_view_get_default_dirs (STYLES_DIR, FALSE);
+               manager->priv->search_path = _gtk_source_utils_get_default_dirs (STYLES_DIR, FALSE);
 
        g_return_if_fail (manager->priv->search_path != NULL);
 
@@ -487,7 +487,7 @@ gtk_source_style_scheme_manager_prepend_search_path (GtkSourceStyleSchemeManager
        g_return_if_fail (path != NULL);
 
        if (manager->priv->search_path == NULL)
-               manager->priv->search_path = _gtk_source_view_get_default_dirs (STYLES_DIR, FALSE);
+               manager->priv->search_path = _gtk_source_utils_get_default_dirs (STYLES_DIR, FALSE);
 
        g_return_if_fail (manager->priv->search_path != NULL);
 
@@ -520,7 +520,7 @@ gtk_source_style_scheme_manager_get_search_path (GtkSourceStyleSchemeManager *ma
        g_return_val_if_fail (GTK_SOURCE_IS_STYLE_SCHEME_MANAGER (manager), NULL);
 
        if (manager->priv->search_path == NULL)
-               manager->priv->search_path = _gtk_source_view_get_default_dirs (STYLES_DIR, FALSE);
+               manager->priv->search_path = _gtk_source_utils_get_default_dirs (STYLES_DIR, FALSE);
 
        return (const gchar * const *)manager->priv->search_path;
 }
diff --git a/gtksourceview/gtksourceview-utils.c b/gtksourceview/gtksourceview-utils.c
index d5d3015..500516a 100644
--- a/gtksourceview/gtksourceview-utils.c
+++ b/gtksourceview/gtksourceview-utils.c
@@ -30,8 +30,8 @@
 #define SOURCEVIEW_DIR "gtksourceview-3.0"
 
 gchar **
-_gtk_source_view_get_default_dirs (const char *basename,
-                                  gboolean    compat)
+_gtk_source_utils_get_default_dirs (const char *basename,
+                                   gboolean    compat)
 {
        const gchar * const *xdg_dirs;
        GPtrArray *dirs;
diff --git a/gtksourceview/gtksourceview-utils.h b/gtksourceview/gtksourceview-utils.h
index b252891..5a38c6d 100644
--- a/gtksourceview/gtksourceview-utils.h
+++ b/gtksourceview/gtksourceview-utils.h
@@ -27,8 +27,8 @@
 G_BEGIN_DECLS
 
 G_GNUC_INTERNAL
-gchar **       _gtk_source_view_get_default_dirs               (const gchar  *basename,
-                                                                gboolean      compat);
+gchar **       _gtk_source_utils_get_default_dirs              (const gchar *basename,
+                                                                gboolean     compat);
 
 G_GNUC_INTERNAL
 GSList *       _gtk_source_view_get_file_list                  (gchar       **path,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]