[gnome-latex] App: remove GtkAccelMap loading and saving
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] App: remove GtkAccelMap loading and saving
- Date: Tue, 28 Apr 2020 21:39:41 +0000 (UTC)
commit 251031a5b086c08d323288aafd6130b752c5978a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Apr 28 23:31:28 2020 +0200
App: remove GtkAccelMap loading and saving
It was added in: commit fc40fc6e3cf6d74cd1f7bc67b67b0ff50332a41c
It is used by GtkUIManager, but GtkUIManager is deprecated (since a long
time) and gnome-latex is moving away from it by using Amtk, and Amtk
doesn't support GtkAccelMap.
src/glatex_app.vala | 22 ----------------------
1 file changed, 22 deletions(-)
---
diff --git a/src/glatex_app.vala b/src/glatex_app.vala
index f68671c..24401f4 100644
--- a/src/glatex_app.vala
+++ b/src/glatex_app.vala
@@ -63,7 +63,6 @@ public class GlatexApp : Latexila.App
setup_theme_extensions ();
AppSettings.get_default ();
support_backward_search ();
- Gtk.AccelMap.load (get_accel_filename ());
release ();
}
@@ -71,23 +70,8 @@ public class GlatexApp : Latexila.App
private void shutdown_cb ()
{
hold ();
-
Projects.get_default ().save ();
MostUsedSymbols.get_default ().save ();
-
- /* Save accel file */
- string accel_filename = get_accel_filename ();
- File accel_file = File.new_for_path (accel_filename);
- try
- {
- Tepl.utils_create_parent_directories (accel_file, null);
- Gtk.AccelMap.save (accel_filename);
- }
- catch (Error error)
- {
- warning ("Error when saving accel file: %s", error.message);
- }
-
release ();
}
@@ -227,12 +211,6 @@ public class GlatexApp : Latexila.App
main_window.present ();
}
- private string get_accel_filename ()
- {
- return Path.build_filename (Environment.get_user_config_dir (),
- "gnome-latex", "accels");
- }
-
private void support_backward_search ()
{
Latexila.Synctex synctex = Latexila.Synctex.get_instance ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]