[gnome-builder/wip/gtk4-port: 886/1774] libide/gui: keep tests working
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 886/1774] libide/gui: keep tests working
- Date: Mon, 11 Jul 2022 22:31:27 +0000 (UTC)
commit 49d1482b1be367fce75e4745fe384ff3d29da200
Author: Christian Hergert <chergert redhat com>
Date: Fri May 6 09:23:10 2022 -0700
libide/gui: keep tests working
src/libide/gui/ide-shortcut-bundle.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-shortcut-bundle.c b/src/libide/gui/ide-shortcut-bundle.c
index 4331a0a8e..89f54981a 100644
--- a/src/libide/gui/ide-shortcut-bundle.c
+++ b/src/libide/gui/ide-shortcut-bundle.c
@@ -127,7 +127,9 @@ ide_shortcut_activate (GtkWidget *widget,
IdeWorkbench *workbench = ide_widget_get_workbench (widget);
IdePage *page = workspace ? ide_workspace_get_most_recent_page (workspace) : NULL;
- focus = gtk_root_get_focus (GTK_ROOT (workspace));
+ if (GTK_IS_ROOT (widget))
+ focus = gtk_root_get_focus (GTK_ROOT (widget));
+
if (focus == NULL)
focus = widget;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]