patch 9.0.1815: pango_coverage_unref() deprecated in pango > 1.51

Commit: 
https://github.com/vim/vim/commit/fe1463674c4c97388409a8c91dd525e7b7afb69e
Author: James McCoy <[email protected]>
Date:   Mon Aug 28 21:29:13 2023 +0200

    patch 9.0.1815: pango_coverage_unref() deprecated in pango > 1.51
    
    Problem:  pango_coverage_unref() deprecated in pango > 1.51
    Solution: use g_object_unref() instead
    
    closes: #12942
    
    Free PangoCoverage with g_object_unref for Pango >= 1.52
    
    pango_coverage_unref was declared deprecated in Pango 1.52.0 in favor of
    g_object_unref.  Adjust the call when building against a new enough
    Pango to avoid the deprecation warning.
    
    Signed-off-by: James McCoy <[email protected]>
    Co-authored-by: James McCoy <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 1f8b2ebcc..3f0cf8c5a 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -4845,7 +4845,11 @@ is_cjk_font(PangoFontDescription *font_desc)
        {
            uc = (cjk_langs[i][0] == 'k') ? 0xAC00 : 0x4E00;
            is_cjk = (pango_coverage_get(coverage, uc) == PANGO_COVERAGE_EXACT);
+#if PANGO_VERSION_CHECK(1, 52, 0)
+           g_object_unref(coverage);
+#else
            pango_coverage_unref(coverage);
+#endif
        }
     }
 
diff --git a/src/version.c b/src/version.c
index ce2869486..6d818ada9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1815,
 /**/
     1814,
 /**/

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qaiAa-00524U-F3%40256bit.org.

Raspunde prin e-mail lui