[gnome-text-editor] page: don't toggle editability during busy operations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] page: don't toggle editability during busy operations
- Date: Tue, 20 Sep 2022 20:02:43 +0000 (UTC)
commit a5273d2edbd96ebde29a6b7a788a1bb8563e9f2f
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 20 13:02:36 2022 -0700
page: don't toggle editability during busy operations
This causes input methods to lose focus during auto-save operations.
Fixes #454
src/editor-page.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/editor-page.c b/src/editor-page.c
index d4e3e5c..3332784 100644
--- a/src/editor-page.c
+++ b/src/editor-page.c
@@ -201,7 +201,13 @@ editor_page_document_notify_busy_cb (EditorPage *self,
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SUBTITLE]);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_TITLE]);
+#if 0
+ /* https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/454
+ * Setting editable == FALSE breaks input methods so we need to
+ * find another way to prevent editing during transactions.
+ */
gtk_text_view_set_editable (GTK_TEXT_VIEW (self->view), !busy);
+#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]