[devhelp] amtk: use sanity checks
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] amtk: use sanity checks
- Date: Fri, 13 Apr 2018 09:34:27 +0000 (UTC)
commit 1947772e04ea67bdebee22b38040834dd5597c2b
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Apr 13 10:38:23 2018 +0200
amtk: use sanity checks
src/dh-app.c | 10 ++++++----
src/dh-window.c | 8 ++++----
2 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index a2aa99c..37f9a18 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -129,6 +129,8 @@ new_window_cb (GSimpleAction *action,
new_window = dh_window_new (GTK_APPLICATION (app));
gtk_widget_show_all (new_window);
+
+ amtk_action_info_store_check_all_used (app->priv->action_info_store);
}
static void
@@ -289,10 +291,10 @@ add_action_entries (DhApp *app)
{ "raise", raise_cb },
};
- g_action_map_add_action_entries (G_ACTION_MAP (app),
- app_entries,
- G_N_ELEMENTS (app_entries),
- app);
+ amtk_action_map_add_action_entries_check_dups (G_ACTION_MAP (app),
+ app_entries,
+ G_N_ELEMENTS (app_entries),
+ app);
}
static void
diff --git a/src/dh-window.c b/src/dh-window.c
index 3f801d6..c56aeb9 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -439,10 +439,10 @@ add_actions (DhWindow *window)
{ "go-forward", go_forward_cb },
};
- g_action_map_add_action_entries (G_ACTION_MAP (window),
- win_entries,
- G_N_ELEMENTS (win_entries),
- window);
+ amtk_action_map_add_action_entries_check_dups (G_ACTION_MAP (window),
+ win_entries,
+ G_N_ELEMENTS (win_entries),
+ window);
property_action = g_property_action_new ("show-sidebar",
priv->grid_sidebar,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]