[latexila] App: use app.tepl-new-window GAction
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] App: use app.tepl-new-window GAction
- Date: Wed, 8 Nov 2017 17:27:13 +0000 (UTC)
commit 9b977f800b7158f910f93e934f6413f5ac2c6d13
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Nov 8 18:25:02 2017 +0100
App: use app.tepl-new-window GAction
src/latexila_app.vala | 8 +-------
src/main_window_file.vala | 4 ++--
src/ui/menus.ui | 2 +-
3 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/src/latexila_app.vala b/src/latexila_app.vala
index e985ad3..92801ef 100644
--- a/src/latexila_app.vala
+++ b/src/latexila_app.vala
@@ -26,7 +26,6 @@ public class LatexilaApp : Gtk.Application
private const GLib.ActionEntry[] _app_actions =
{
{ "new-document", new_document_cb },
- { "new-window", new_window_cb },
{ "preferences", preferences_cb },
{ "manage-build-tools", manage_build_tools_cb },
{ "help", help_cb },
@@ -106,7 +105,7 @@ public class LatexilaApp : Gtk.Application
}
if (new_window)
- activate_action ("new-window", null);
+ activate_action ("tepl-new-window", null);
if (new_document)
activate_action ("new-document", null);
@@ -175,11 +174,6 @@ public class LatexilaApp : Gtk.Application
window.create_tab (true);
}
- private void new_window_cb ()
- {
- create_window ();
- }
-
private void preferences_cb ()
{
PreferencesDialog.show_me (get_active_main_window ());
diff --git a/src/main_window_file.vala b/src/main_window_file.vala
index b0a341f..2d74a96 100644
--- a/src/main_window_file.vala
+++ b/src/main_window_file.vala
@@ -1,7 +1,7 @@
/*
* This file is part of LaTeXila.
*
- * Copyright © 2012 Sébastien Wilmet
+ * Copyright © 2012, 2017 Sébastien Wilmet
*
* LaTeXila is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -74,7 +74,7 @@ public class MainWindowFile
ui_manager.insert_action_group (_action_group, 0);
LatexilaApp app = LatexilaApp.get_instance ();
- Amtk.utils_bind_g_action_to_gtk_action (app, "new-window",
+ Amtk.utils_bind_g_action_to_gtk_action (app, "tepl-new-window",
_action_group, "FileNewWindow");
}
diff --git a/src/ui/menus.ui b/src/ui/menus.ui
index b324f17..c8767d7 100644
--- a/src/ui/menus.ui
+++ b/src/ui/menus.ui
@@ -5,7 +5,7 @@
<section>
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
- <attribute name="action">app.new-window</attribute>
+ <attribute name="action">app.tepl-new-window</attribute>
</item>
</section>
<section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]