diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-03-30 19:02:35 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-30 19:02:35 -0400 |
commit | ace183f38f030e1795594bda5666bf053f823286 (patch) | |
tree | 90d773685e5c8acf0562410dd48d23aa997906b4 /gtk/gtkshortcutcontroller.c | |
parent | 5bf030413b3eed95508b482599948314a27287d9 (diff) | |
download | gtk+-ace183f38f030e1795594bda5666bf053f823286.tar.gz |
shortcutcontroller: Fix builder support
The GtkBuilder support was not working anymore after
triggers and actions have been turned into objects.
Fix this.
Diffstat (limited to 'gtk/gtkshortcutcontroller.c')
-rw-r--r-- | gtk/gtkshortcutcontroller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkshortcutcontroller.c b/gtk/gtkshortcutcontroller.c index 8123d796e6..d18b6902f2 100644 --- a/gtk/gtkshortcutcontroller.c +++ b/gtk/gtkshortcutcontroller.c @@ -127,7 +127,7 @@ gtk_shortcut_controller_buildable_add_child (GtkBuildable *buildable, } if (GTK_IS_SHORTCUT (child)) { - gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (buildable), GTK_SHORTCUT (child)); + gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (buildable), g_object_ref (GTK_SHORTCUT (child))); } else { |