[libdazzle] app: add "shortcut-theme" property action
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] app: add "shortcut-theme" property action
- Date: Sat, 17 Jun 2017 03:20:46 +0000 (UTC)
commit af10ba0369f04837b2c9b482600350c936e4f236
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 16 20:20:31 2017 -0700
app: add "shortcut-theme" property action
This allows changing the property by using a stateful action.
src/app/dzl-application.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/app/dzl-application.c b/src/app/dzl-application.c
index 02b9bfc..984e7f6 100644
--- a/src/app/dzl-application.c
+++ b/src/app/dzl-application.c
@@ -294,6 +294,7 @@ static void
dzl_application_init (DzlApplication *self)
{
DzlApplicationPrivate *priv = dzl_application_get_instance_private (self);
+ g_autoptr(GPropertyAction) shortcut_theme_action = NULL;
g_application_set_default (G_APPLICATION (self));
@@ -302,6 +303,9 @@ dzl_application_init (DzlApplication *self)
priv->menu_manager = dzl_menu_manager_new ();
priv->menu_merge_ids = g_hash_table_new (NULL, NULL);
priv->shortcut_manager = g_object_ref (dzl_shortcut_manager_get_default ());
+
+ shortcut_theme_action = g_property_action_new ("shortcut-theme", priv->shortcut_manager, "theme-name");
+ g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (shortcut_theme_action));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]