[gnome-builder/wip/gtk4-port: 709/736] libide/gui: make ide_widget_get_workspace() support popovers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 709/736] libide/gui: make ide_widget_get_workspace() support popovers
- Date: Tue, 26 Apr 2022 01:46:36 +0000 (UTC)
commit 25cf8f2f4c3fd54b17b5b847e8700fabf3271124
Author: Christian Hergert <chergert redhat com>
Date: Thu Apr 21 14:13:13 2022 -0700
libide/gui: make ide_widget_get_workspace() support popovers
We need to get the GtkRoot, not the GtkNative (which is the popover) to
return the IdeWorkspace for a widget.
src/libide/gui/ide-gui-global.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-gui-global.c b/src/libide/gui/ide-gui-global.c
index 2f3b523a1..006955ef3 100644
--- a/src/libide/gui/ide-gui-global.c
+++ b/src/libide/gui/ide-gui-global.c
@@ -208,5 +208,5 @@ ide_widget_get_workspace (GtkWidget *widget)
{
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
- return IDE_WORKSPACE (gtk_widget_get_native (widget));
+ return IDE_WORKSPACE (gtk_widget_get_root (widget));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]