Commit 26f21241 authored by Daniel Garcia Moreno's avatar Daniel Garcia Moreno
Browse files

Remove app menu

parent 7443909d
......@@ -45,7 +45,6 @@ src/gtr-utils.c
src/gtr-view.c
src/gtr-window.c
src/gtr-window.ui
src/gtranslator-menu.ui
src/help-overlay.ui
src/main.c
src/translation-memory/gtr-translation-memory-dialog.c
......
......@@ -663,7 +663,6 @@ set_kb (GApplication *app, gchar *action, gchar *accel)
static void
gtr_application_startup (GApplication *application)
{
GtkBuilder *builder;
GtrApplication *app = GTR_APPLICATION (application);
GtrApplicationPrivate *priv = gtr_application_get_instance_private (app);
......@@ -727,12 +726,6 @@ gtr_application_startup (GApplication *application)
set_kb (application, "app.tm_8", "<Ctrl>8");
set_kb (application, "app.tm_9", "<Ctrl>9");
builder = gtk_builder_new ();
gtk_builder_add_from_resource (builder, "/org/gnome/translator/gtranslator-menu.ui", NULL);
gtk_application_set_app_menu (GTK_APPLICATION (application),
G_MENU_MODEL (gtk_builder_get_object (builder, "appmenu")));
g_object_unref (builder);
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
GTK_STYLE_PROVIDER (priv->provider), 600);
}
......
<?xml version="1.0"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<menu id="appmenu">
<section>
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
<attribute name="action">app.new_window</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
<attribute name="accel">F1</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About GNOME Translation Editor</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
</interface>
......@@ -3,7 +3,6 @@
<gresource prefix="/org/gnome/translator">
<file>styles.css</file>
<file preprocess="xml-stripblanks">gtranslator-ui.xml</file>
<file preprocess="xml-stripblanks">gtranslator-menu.ui</file>
<file preprocess="xml-stripblanks">gtr-context.ui</file>
<file preprocess="xml-stripblanks">gtr-header-dialog.ui</file>
<file preprocess="xml-stripblanks">gtr-jump-dialog.ui</file>
......
......@@ -99,7 +99,6 @@ sources += gnome.mkenums(
)
resource_data = files(
'gtranslator-menu.ui',
'gtranslator-ui.xml',
'gtr-context.ui',
'gtr-header-dialog.ui',
......
Supports Markdown
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