[gnome-builder/wip/gtk4-port] libide/gui: always supply widget during activation



commit af7c65f229d46526a3be8d902a3dfefe9e7f94ae
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]