Commit 0d4eb7bb authored by Sébastien Wilmet's avatar Sébastien Wilmet
Browse files

Rename to GNOME LaTeX: org.gnome.gnome-latex

parent bda4c91b
......@@ -28,7 +28,7 @@ public class AppSettings : GLib.Settings
/* AppSettings is a singleton */
private AppSettings ()
{
Object (schema_id: "org.gnome.latexila");
Object (schema_id: "org.gnome.gnome-latex");
initialize ();
}
......
......@@ -37,7 +37,7 @@ public class CleanBuildFiles : GLib.Object
{
_main_window = main_window;
_doc = doc;
_settings = new GLib.Settings ("org.gnome.latexila.preferences.latex");
_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.latex");
}
public void clean ()
......
......@@ -81,7 +81,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
/* CompletionProvider is a singleton */
private CompletionProvider ()
{
_settings = new GLib.Settings ("org.gnome.latexila.preferences.latex");
_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.latex");
// icons
_icon_cmd = Latexila.utils_get_pixbuf_from_icon_name ("completion_cmd",
......
......@@ -50,7 +50,7 @@ public class Document : Tepl.Buffer
});
GLib.Settings editor_settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
editor_settings.bind ("scheme", this, "tepl-style-scheme-id",
SettingsBindFlags.GET);
......@@ -174,7 +174,7 @@ public class Document : Tepl.Buffer
try
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
bool make_backup = ! backup_made
&& settings.get_boolean ("create-backup-copy");
......
......@@ -127,7 +127,7 @@ public class DocumentTab : Tepl.Tab
/* auto save */
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
auto_save = settings.get_boolean ("auto-save");
uint tmp;
settings.get ("auto-save-interval", "u", out tmp);
......
......@@ -49,7 +49,7 @@ public class DocumentView : Tepl.View
Latexila.view_configure_space_drawer (this);
/* settings */
_editor_settings = new GLib.Settings ("org.gnome.latexila.preferences.editor");
_editor_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
_editor_settings.bind ("forget-no-tabs", this, "smart-backspace",
SettingsBindFlags.GET);
......
......@@ -63,7 +63,7 @@ public class DocumentsPanel : Tepl.Notebook
{
// automatic clean-up build files
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.latex");
new GLib.Settings ("org.gnome.gnome-latex.preferences.latex");
if (settings.get_boolean ("no-confirm-clean")
&& settings.get_boolean ("automatic-clean"))
......
......@@ -44,12 +44,12 @@ public class Factory : Tepl.AbstractFactoryVala
private void reopen_files (LatexilaApp app)
{
GLib.Settings editor_settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
if (editor_settings.get_boolean ("reopen-files"))
{
GLib.Settings window_settings =
new GLib.Settings ("org.gnome.latexila.state.window");
new GLib.Settings ("org.gnome.gnome-latex.state.window");
string[] uris = window_settings.get_strv ("documents");
File[] files = {};
......
......@@ -73,11 +73,11 @@ public class FileBrowser : Grid
private void init_settings ()
{
_settings = new GLib.Settings ("org.gnome.latexila.preferences.file-browser");
_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.file-browser");
_settings.changed["show-build-files"].connect (refresh);
_settings.changed["show-hidden-files"].connect (refresh);
_latex_settings = new GLib.Settings ("org.gnome.latexila.preferences.latex");
_latex_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.latex");
_latex_settings.changed["clean-extensions"].connect (delayed_refresh);
}
......
......@@ -101,7 +101,7 @@ namespace Finance
}
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.state.dialogs.finance");
new GLib.Settings ("org.gnome.gnome-latex.state.dialogs.finance");
settings.set_boolean ("remind-later", remind_later_checkbutton.get_active ());
break;
......@@ -114,7 +114,7 @@ namespace Finance
private bool should_show_dialog_on_startup ()
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.state.dialogs.finance");
new GLib.Settings ("org.gnome.gnome-latex.state.dialogs.finance");
string date = settings.get_string ("last-shown-date");
......@@ -147,7 +147,7 @@ namespace Finance
private void save_date ()
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.state.dialogs.finance");
new GLib.Settings ("org.gnome.gnome-latex.state.dialogs.finance");
DateTime time = new DateTime.now_utc ();
string date = "%d-%d-%d".printf (time.get_year (), time.get_month (),
......
......@@ -36,7 +36,7 @@ public class LatexilaApp : Gtk.Application
public LatexilaApp ()
{
Object (application_id: "org.gnome.latexila");
Object (application_id: "org.gnome.gnome-latex");
set_flags (ApplicationFlags.HANDLES_OPEN);
Environment.set_application_name (Config.PACKAGE_NAME);
Gtk.Window.set_default_icon_name ("gnome-latex");
......
......@@ -82,7 +82,7 @@ load_settings (LatexilaBuildToolsDefault *build_tools)
GVariantIter *iter;
gint tool_id;
settings = g_settings_new ("org.gnome.latexila.preferences.latex");
settings = g_settings_new ("org.gnome.gnome-latex.preferences.latex");
tools = g_settings_get_value (settings, "enabled-default-build-tools");
g_variant_get (tools, "ai", &iter);
......@@ -138,7 +138,7 @@ save_settings (LatexilaBuildToolsDefault *build_tools)
enabled_tools = g_variant_builder_end (&builder_enabled);
disabled_tools = g_variant_builder_end (&builder_disabled);
settings = g_settings_new ("org.gnome.latexila.preferences.latex");
settings = g_settings_new ("org.gnome.gnome-latex.preferences.latex");
g_settings_set_value (settings, "enabled-default-build-tools", enabled_tools);
g_settings_set_value (settings, "disabled-default-build-tools", disabled_tools);
......
......@@ -504,7 +504,7 @@ public class MainWindow : ApplicationWindow
private void restore_state ()
{
GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.state.window");
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.state.window");
/* The window itself */
......@@ -553,7 +553,7 @@ public class MainWindow : ApplicationWindow
private void show_or_hide_widgets ()
{
GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.preferences.ui");
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.ui");
ToggleAction action =
_action_group.get_action ("ViewMainToolbar") as ToggleAction;
......@@ -919,7 +919,7 @@ public class MainWindow : ApplicationWindow
{
/* state of the window */
GLib.Settings settings_window =
new GLib.Settings ("org.gnome.latexila.state.window");
new GLib.Settings ("org.gnome.gnome-latex.state.window");
Gdk.WindowState state = get_window ().get_state ();
settings_window.set_int ("state", state);
......@@ -936,7 +936,7 @@ public class MainWindow : ApplicationWindow
/* ui preferences */
GLib.Settings settings_ui =
new GLib.Settings ("org.gnome.latexila.preferences.ui");
new GLib.Settings ("org.gnome.gnome-latex.preferences.ui");
// We don't bind this settings to the toggle action because when we change the
// setting it must be applied only on the current window and not all windows.
......@@ -1024,7 +1024,7 @@ public class MainWindow : ApplicationWindow
list_uris += doc.location.get_uri ();
}
GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.state.window");
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.state.window");
settings.set_strv ("documents", list_uris);
if (close_all_documents ())
......
......@@ -239,7 +239,7 @@ public class MainWindowBuildTools
public void save_state ()
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.ui");
new GLib.Settings ("org.gnome.gnome-latex.preferences.ui");
ToggleAction action =
_static_action_group.get_action ("BuildShowWarnings") as ToggleAction;
......@@ -413,7 +413,7 @@ public class MainWindowBuildTools
{
return_if_fail (_build_view != null);
GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.preferences.ui");
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.ui");
/* Show details */
......
......@@ -60,7 +60,7 @@ public class MainWindowTools
update_inline_spell_checker_action_state ();
});
_editor_settings = new GLib.Settings ("org.gnome.latexila.preferences.editor");
_editor_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
_editor_settings.changed["highlight-misspelled-words"].connect (() =>
{
......
......@@ -121,8 +121,8 @@ public class PreferencesDialog : Dialog
string[] settings_str =
{
"org.gnome.latexila.preferences.editor",
"org.gnome.latexila.preferences.latex"
"org.gnome.gnome-latex.preferences.editor",
"org.gnome.gnome-latex.preferences.latex"
};
foreach (string setting_str in settings_str)
......@@ -137,7 +137,7 @@ public class PreferencesDialog : Dialog
private void init_editor_tab (Builder builder)
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
var display_line_nb_checkbutton =
builder.get_object ("display_line_nb_checkbutton");
......@@ -196,7 +196,7 @@ public class PreferencesDialog : Dialog
private void init_font_and_colors_tab (Builder builder)
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
var default_font_checkbutton =
builder.get_object ("default_font_checkbutton") as Button;
......@@ -267,7 +267,7 @@ public class PreferencesDialog : Dialog
private void init_interactive_completion_setting (Builder builder)
{
GLib.Settings settings =
new GLib.Settings ("org.gnome.latexila.preferences.latex");
new GLib.Settings ("org.gnome.gnome-latex.preferences.latex");
var interactive_comp_checkbutton =
builder.get_object ("interactive_comp_checkbutton");
......@@ -292,7 +292,7 @@ public class PreferencesDialog : Dialog
private void init_spell_checking_settings (Builder builder)
{
GLib.Settings editor_settings =
new GLib.Settings ("org.gnome.latexila.preferences.editor");
new GLib.Settings ("org.gnome.gnome-latex.preferences.editor");
Gspell.LanguageChooserButton spell_language_button =
builder.get_object ("spell_language_button") as Gspell.LanguageChooserButton;
......@@ -307,7 +307,7 @@ public class PreferencesDialog : Dialog
private void init_other_tab (Builder builder)
{
GLib.Settings latex_settings =
new GLib.Settings ("org.gnome.latexila.preferences.latex");
new GLib.Settings ("org.gnome.gnome-latex.preferences.latex");
var confirm_clean_up_checkbutton =
builder.get_object ("confirm_clean_up_checkbutton");
......
......@@ -36,7 +36,7 @@ public class SidePanel : Grid
public SidePanel ()
{
_settings = new GLib.Settings ("org.gnome.latexila.preferences.ui");
_settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.ui");
_components = new Gee.ArrayList<Grid?> ();
margin_start = 6;
......
......@@ -268,13 +268,13 @@ public class Structure : Grid
_vpaned.expand = true;
add (_vpaned);
GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.state.window");
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.state.window");
_vpaned.set_position (settings.get_int ("structure-paned-position"));
}
public void save_state ()
{
GLib.Settings settings = new GLib.Settings ("org.gnome.latexila.state.window");
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.state.window");
settings.set_int ("structure-paned-position", _vpaned.get_position ());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment