[gnome-builder/wip/gtk4-port: 956/1774] libide/gui: always supply widget during activation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 956/1774] libide/gui: always supply widget during activation
- Date: Mon, 11 Jul 2022 22:31:29 +0000 (UTC)
commit b7588518212b926f9703d0206ba7613670fcee87
Author: Christian Hergert <chergert redhat com>
Date: Tue May 10 15:35:05 2022 -0700
libide/gui: always supply widget during activation
If no expression was set, we'll have to double check we have a focus
widget to deliver.
src/libide/gui/ide-shortcut-bundle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-shortcut-bundle.c b/src/libide/gui/ide-shortcut-bundle.c
index 10690d51e..88c4b8b97 100644
--- a/src/libide/gui/ide-shortcut-bundle.c
+++ b/src/libide/gui/ide-shortcut-bundle.c
@@ -148,7 +148,7 @@ ide_shortcut_activate (GtkWidget *widget,
return gtk_shortcut_action_activate (shortcut->action,
GTK_SHORTCUT_ACTION_EXCLUSIVE,
- focus,
+ focus ? focus : widget,
shortcut->args);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]