Commit 9b977f80 authored by Sébastien Wilmet's avatar Sébastien Wilmet
Browse files

App: use app.tepl-new-window GAction

parent 85787863
......@@ -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 ());
......
/*
* 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");
}
......
......@@ -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>
......
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