[gnome-latex] latexila -> gnome-latex migration: rename utils function
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] latexila -> gnome-latex migration: rename utils function
- Date: Tue, 27 Mar 2018 11:57:40 +0000 (UTC)
commit 3af415b63dfc3e651f7409fdb71519c4c90f6aab
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Mar 27 13:05:26 2018 +0200
latexila -> gnome-latex migration: rename utils function
The utils function will do more work in the future, to migrate files in
~/.local/share/ and ~/.config/.
data/org.gnome.gnome-latex.gschema.xml.in | 2 +-
docs/reference/gnome-latex-sections.txt | 2 +-
src/latexila_app.vala | 2 +-
src/liblatexila/latexila-utils.c | 22 ++++++++++++++--------
src/liblatexila/latexila-utils.h | 2 +-
5 files changed, 18 insertions(+), 12 deletions(-)
---
diff --git a/data/org.gnome.gnome-latex.gschema.xml.in b/data/org.gnome.gnome-latex.gschema.xml.in
index 6cfbccc..4b3d04f 100644
--- a/data/org.gnome.gnome-latex.gschema.xml.in
+++ b/data/org.gnome.gnome-latex.gschema.xml.in
@@ -1,6 +1,6 @@
<!--
When modifying this GSettings schema, don't forget to update the list of
- keys in latexila_utils_migrate_latexila_to_gnome_latex_gsettings().
+ keys in latexila_utils_migrate_latexila_to_gnome_latex().
-->
<schemalist>
diff --git a/docs/reference/gnome-latex-sections.txt b/docs/reference/gnome-latex-sections.txt
index e238ff5..74dcae7 100644
--- a/docs/reference/gnome-latex-sections.txt
+++ b/docs/reference/gnome-latex-sections.txt
@@ -279,7 +279,7 @@ latexila_utils_join_widgets
latexila_utils_get_pixbuf_from_icon_name
latexila_utils_str_replace
latexila_utils_register_icons
-latexila_utils_migrate_latexila_to_gnome_latex_gsettings
+latexila_utils_migrate_latexila_to_gnome_latex
</SECTION>
<SECTION>
diff --git a/src/latexila_app.vala b/src/latexila_app.vala
index ccf7f0f..30918a1 100644
--- a/src/latexila_app.vala
+++ b/src/latexila_app.vala
@@ -119,7 +119,7 @@ public class LatexilaApp : Gtk.Application
{
hold ();
- Latexila.utils_migrate_latexila_to_gnome_latex_gsettings ();
+ Latexila.utils_migrate_latexila_to_gnome_latex ();
add_action_entries (_app_actions, this);
Latexila.latex_commands_add_action_infos (this);
diff --git a/src/liblatexila/latexila-utils.c b/src/liblatexila/latexila-utils.c
index 1ee75ef..902149e 100644
--- a/src/liblatexila/latexila-utils.c
+++ b/src/liblatexila/latexila-utils.c
@@ -490,14 +490,8 @@ latexila_utils_join_widgets (GtkWidget *widget_top,
return GTK_WIDGET (vbox);
}
-/**
- * latexila_utils_migrate_latexila_to_gnome_latex_gsettings:
- *
- * Migrates the #GSettings values from LaTeXila to GNOME LaTeX, so that users
- * don't lose all their settings.
- */
-void
-latexila_utils_migrate_latexila_to_gnome_latex_gsettings (void)
+static void
+migrate_latexila_to_gnome_latex_gsettings (void)
{
GSettings *settings;
DhDconfMigration *migration;
@@ -581,3 +575,15 @@ latexila_utils_migrate_latexila_to_gnome_latex_gsettings (void)
out:
g_object_unref (settings);
}
+
+/**
+ * latexila_utils_migrate_latexila_to_gnome_latex:
+ *
+ * Migrates the #GSettings values from LaTeXila to GNOME LaTeX, so that users
+ * don't lose all their settings.
+ */
+void
+latexila_utils_migrate_latexila_to_gnome_latex (void)
+{
+ migrate_latexila_to_gnome_latex_gsettings ();
+}
diff --git a/src/liblatexila/latexila-utils.h b/src/liblatexila/latexila-utils.h
index c3a11ce..3b49aa4 100644
--- a/src/liblatexila/latexila-utils.h
+++ b/src/liblatexila/latexila-utils.h
@@ -69,7 +69,7 @@ gchar * latexila_utils_str_replace (const gchar *string,
void latexila_utils_register_icons (void);
-void latexila_utils_migrate_latexila_to_gnome_latex_gsettings (void);
+void latexila_utils_migrate_latexila_to_gnome_latex (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]