patch 9.2.0519: GTK4: GUI tabline is not displayed correctly

Commit: 
https://github.com/vim/vim/commit/3a54de8f441730dfe617892c7a08817252618a1c
Author: Foxe Chen <[email protected]>
Date:   Sat May 23 18:35:07 2026 +0000

    patch 9.2.0519: GTK4: GUI tabline is not displayed correctly
    
    Problem:  GTK4: GUI tabline is not displayed correctly, and double
              increments the index in the for() loop
    Solution: Drop the additional increment (Foxe Chen)
    
    closes: #20299
    
    Co-Authored-by: Hirohito Higashi <[email protected]>
    Signed-off-by: Foxe Chen <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/gui_gtk4.c b/src/gui_gtk4.c
index bc66ba9e7..4b02fe1a7 100644
--- a/src/gui_gtk4.c
+++ b/src/gui_gtk4.c
@@ -477,7 +477,7 @@ gui_mch_init(void)
 #ifdef FEAT_GUI_TABLINE
     gui.tabline = gtk_notebook_new();
     gtk_notebook_set_show_border(GTK_NOTEBOOK(gui.tabline), FALSE);
-    gtk_notebook_set_show_tabs(GTK_NOTEBOOK(gui.tabline), FALSE);
+    gtk_notebook_set_show_tabs(GTK_NOTEBOOK(gui.tabline), TRUE);
     gtk_notebook_set_scrollable(GTK_NOTEBOOK(gui.tabline), TRUE);
     gtk_widget_set_visible(gui.tabline, FALSE);
     gtk_box_append(GTK_BOX(vbox), gui.tabline);
@@ -2328,7 +2328,7 @@ gui_mch_update_tabline(void)
            gtk_box_append(GTK_BOX(event_box), label);
            gtk_widget_set_visible(label, TRUE);
            gtk_notebook_insert_page(GTK_NOTEBOOK(gui.tabline),
-                   page, event_box, nr++);
+                   page, event_box, nr);
            gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(gui.tabline),
                    page, TRUE);
        }
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index af452c846..b47941acb 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -3581,7 +3581,7 @@ gui_mch_update_tabline(void)
            gtk_notebook_insert_page(GTK_NOTEBOOK(gui.tabline),
                    page,
                    event_box,
-                   nr++);
+                   nr);
 # if GTK_CHECK_VERSION(2,10,0)
            gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(gui.tabline),
                    page,
diff --git a/src/version.c b/src/version.c
index caec10bb1..10480a3c8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    519,
 /**/
     518,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wQrLO-002iN0-5r%40256bit.org.

Raspunde prin e-mail lui