Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
gnome-latex
Commits
fec42540
Commit
fec42540
authored
Mar 27, 2018
by
swilmet
Browse files
latexila -> gnome-latex migration: handle personal build tools
parent
f2ffc474
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/liblatexila/latexila-build-tools-personal.c
View file @
fec42540
...
...
@@ -67,18 +67,10 @@ latexila_build_tools_personal_class_init (LatexilaBuildToolsPersonalClass *klass
static
GFile
*
get_xml_file
(
void
)
{
gchar
*
path
;
GFile
*
file
;
path
=
g_build_filename
(
g_get_user_config_dir
(),
"latexila"
,
"build_tools.xml"
,
NULL
);
file
=
g_file_new_for_path
(
path
);
g_free
(
path
);
return
file
;
return
g_file_new_build_filename
(
g_get_user_config_dir
(),
"gnome-latex"
,
"build_tools.xml"
,
NULL
);
}
static
void
...
...
src/liblatexila/latexila-utils.c
View file @
fec42540
...
...
@@ -641,6 +641,28 @@ migrate_latexila_to_gnome_latex_projects (void)
g_object_unref
(
glatex_file
);
}
static
void
migrate_latexila_to_gnome_latex_personal_build_tools
(
void
)
{
GFile
*
latexila_file
;
GFile
*
glatex_file
;
latexila_file
=
g_file_new_build_filename
(
g_get_user_config_dir
(),
"latexila"
,
"build_tools.xml"
,
NULL
);
glatex_file
=
g_file_new_build_filename
(
g_get_user_config_dir
(),
"gnome-latex"
,
"build_tools.xml"
,
NULL
);
migrate_latexila_to_gnome_latex_copy_file
(
latexila_file
,
glatex_file
);
g_object_unref
(
latexila_file
);
g_object_unref
(
glatex_file
);
}
/**
* latexila_utils_migrate_latexila_to_gnome_latex:
*
...
...
@@ -659,6 +681,7 @@ latexila_utils_migrate_latexila_to_gnome_latex (void)
migrate_latexila_to_gnome_latex_gsettings
();
migrate_latexila_to_gnome_latex_most_used_symbols
();
migrate_latexila_to_gnome_latex_projects
();
migrate_latexila_to_gnome_latex_personal_build_tools
();
g_settings_set_boolean
(
settings
,
"latexila-to-gnome-latex-migration-done"
,
TRUE
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment