[geany/geany] c832f3: Merge pull request #3091 from eht16/issue2813_fix_vte_paste_crash

Enrico Tröger git-noreply at geany.org
Sun Apr 10 19:30:23 UTC 2022


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Sun, 10 Apr 2022 19:30:23 UTC
Commit:      c832f316a670f7c3d34f5c75d63743e2f9bf6563
             https://github.com/geany/geany/commit/c832f316a670f7c3d34f5c75d63743e2f9bf6563

Log Message:
-----------
Merge pull request #3091 from eht16/issue2813_fix_vte_paste_crash

Manually realize the VTE widget on startup


Modified Paths:
--------------
    src/vte.c

Modified: src/vte.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -240,6 +240,10 @@ static void on_startup_complete(G_GNUC_UNUSED GObject *dummy)
 {
 	GeanyDocument *doc = document_get_current();
 
+	/* ensure the widget is mapped and fully initialized, so actions like pasting text work
+	 * (see https://github.com/geany/geany/issues/2813 for details) */
+	gtk_widget_realize(vc->vte);
+
 	if (doc)
 		vte_cwd((doc->real_path != NULL) ? doc->real_path : doc->file_name, FALSE);
 }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list