[gnome-builder/wip/chergert/libpanel-changes] libide/editor: implement agree_to_close vfuncs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/libpanel-changes] libide/editor: implement agree_to_close vfuncs
- Date: Tue, 13 Sep 2022 19:27:29 +0000 (UTC)
commit 70c2209c29b22f6c48a1393264eab66d1b33ad6a
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 13 12:27:18 2022 -0700
libide/editor: implement agree_to_close vfuncs
src/libide/editor/ide-editor-workspace.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/src/libide/editor/ide-editor-workspace.c b/src/libide/editor/ide-editor-workspace.c
index df6967476..5a3b160d7 100644
--- a/src/libide/editor/ide-editor-workspace.c
+++ b/src/libide/editor/ide-editor-workspace.c
@@ -230,6 +230,27 @@ toggle_panel_action (gpointer instance,
g_object_set (self->dock, property, FALSE, NULL);
}
+static void
+ide_editor_workspace_agree_to_close_async (IdeWorkspace *workspace,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ _ide_workspace_agree_to_close_async (workspace,
+ IDE_EDITOR_WORKSPACE (workspace)->grid,
+ cancellable,
+ callback,
+ user_data);
+}
+
+static gboolean
+ide_editor_workspace_agree_to_close_finish (IdeWorkspace *workspace,
+ GAsyncResult *result,
+ GError **error)
+{
+ return _ide_workspace_agree_to_close_finish (workspace, result, error);
+}
+
static void
ide_editor_workspace_dispose (GObject *object)
{
@@ -257,6 +278,8 @@ ide_editor_workspace_class_init (IdeEditorWorkspaceClass *klass)
workspace_class->add_grid_column = ide_editor_workspace_add_grid_column;
workspace_class->add_page = ide_editor_workspace_add_page;
workspace_class->add_pane = ide_editor_workspace_add_pane;
+ workspace_class->agree_to_close_async = ide_editor_workspace_agree_to_close_async;
+ workspace_class->agree_to_close_finish = ide_editor_workspace_agree_to_close_finish;
workspace_class->can_search = ide_editor_workspace_can_search;
workspace_class->context_set = ide_editor_workspace_context_set;
workspace_class->foreach_page = ide_editor_workspace_foreach_page;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]