[vim/vim] Refactor gui_gtk4_f.c (PR #20375)

4 views
Skip to first unread message

Foxe Chen

unread,
May 29, 2026, 9:16:46 PM (3 days ago) May 29
to vim/vim, Subscribed

Right now gui.drawarea is not a child of gui.formwin, which I think was not intended. Refactor gui_gtk4_f.c to make it more readable, and make gui.drawarea a child of gui.formwin. The formwin is now called VimForm instead of GtkForm, since we shouldn't use the gtk namespace. Additionally, this fixes the left scrollbar appearing over the drawarea.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20375

Commit Summary

  • df88f20 refactor gui_gtk4_f.c and drawarea handling

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20375@github.com>

h_east

unread,
11:27 AM (4 hours ago) 11:27 AM
to vim/vim, Subscribed
h-east left a comment (vim/vim#20375)
  • vim_form_dispose() does not cancel a pending resize idle. Not fatal (the
    g_object_ref() keeps the object alive and the callback bails on
    gui.drawarea == NULL), and removing the source would leak the held ref, so
    the current approach is self-consistent — noting only for completeness.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20375/c4594031617@github.com>

Reply all
Reply to author
Forward
0 new messages