[gedit/wip/redesign2] Always add app actions, irrespective of app menu
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/redesign2] Always add app actions, irrespective of app menu
- Date: Mon, 6 Jan 2014 21:41:07 +0000 (UTC)
commit d02450f9b4244d83efe26a12f1710b4a51b4769a
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Jan 6 22:31:12 2014 +0100
Always add app actions, irrespective of app menu
gedit/gedit-app.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 47a1e37..06850d7 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -463,16 +463,16 @@ gedit_app_startup (GApplication *application)
/* initial lockdown state */
app->priv->lockdown = gedit_settings_get_lockdown (GEDIT_SETTINGS (app->priv->settings));
+ g_action_map_add_action_entries (G_ACTION_MAP (app),
+ app_entries,
+ G_N_ELEMENTS (app_entries),
+ app);
+
/* app menu */
if (_gedit_app_has_app_menu (app))
{
GtkBuilder *builder;
- g_action_map_add_action_entries (G_ACTION_MAP (app),
- app_entries,
- G_N_ELEMENTS (app_entries),
- app);
-
builder = gtk_builder_new ();
if (!gtk_builder_add_from_resource (builder,
"/org/gnome/gedit/ui/gedit-menu.ui",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]