[gnome-text-editor] page: make page uneditable while document is busy
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] page: make page uneditable while document is busy
- Date: Mon, 1 Aug 2022 19:15:06 +0000 (UTC)
commit caa5ed4e31ff0d5c8758568525e691347373789f
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 1 12:14:36 2022 -0700
page: make page uneditable while document is busy
src/editor-page.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/editor-page.c b/src/editor-page.c
index 0cc3120..1ad4781 100644
--- a/src/editor-page.c
+++ b/src/editor-page.c
@@ -181,6 +181,8 @@ editor_page_document_notify_busy_cb (EditorPage *self,
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_CAN_SAVE]);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SUBTITLE]);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_TITLE]);
+
+ gtk_text_view_set_editable (GTK_TEXT_VIEW (self->view), !busy);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]