[gnome-builder/wip/gtk4-port] libide/gui: add ide_workspace_get_workbench()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/gui: add ide_workspace_get_workbench()
- Date: Thu, 31 Mar 2022 06:52:24 +0000 (UTC)
commit a91f6d2ab2e1da2528271a70d7b1eb3fe0945547
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 30 23:49:30 2022 -0700
libide/gui: add ide_workspace_get_workbench()
Just a typed helper to get the workbench from the workspace.
src/libide/gui/ide-workbench.h | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/libide/gui/ide-workbench.h b/src/libide/gui/ide-workbench.h
index ea64a1e0a..c18c46e19 100644
--- a/src/libide/gui/ide-workbench.h
+++ b/src/libide/gui/ide-workbench.h
@@ -152,5 +152,10 @@ GFile *ide_workbench_resolve_file_finish (IdeWorkbench *self
GAsyncResult *result,
GError **error);
+static inline IdeWorkbench *
+ide_workspace_get_workbench (IdeWorkspace *workspace)
+{
+ return IDE_WORKBENCH (gtk_window_get_group (GTK_WINDOW (workspace)));
+}
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]