Commit: patch 9.2.0859: GTK2: Link error
Christian Brabandt <[email protected]> Mon, 27 Jul 2026 20:15:05 +0200
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
patch 9.2.0859: GTK2: Link error Commit: https://github.com/vim/vim/commit/69db19ff65f2e1646cd34758ad42d68d2369057e Author: Olaf Seibert <[email protected]> Date: Mon Jul 27 17:53:33 2026 +0000 patch 9.2.0859: GTK2: Link error Problem: GTK2: Link error (after v9.2.0853) Solution: Adjust ifdef and include only when using at least GTK 3.10 (Olaf Seibert) Error message: ld: objects/gui_gtk_x11.o: in function `gui_mch_init': gui_gtk_x11.c:(.text+0x33f1): undefined reference to `gtk_widget_get_scale_factor' link.sh: Linking failed *** Error code 1 closes: #20857 Signed-off-by: Olaf Seibert <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 1291919b2..0647d9b16 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -4299,7 +4299,7 @@ gui_mch_init(void) G_CALLBACK(gtk_settings_xft_dpi_changed_cb), NULL); } -#ifdef FEAT_IMAGE +#if defined(FEAT_IMAGE) && GTK_CHECK_VERSION(3,10,0) gui.scale = gtk_widget_get_scale_factor(gui.formwin); #endif diff --git a/src/version.c b/src/version.c index 8dcb28fb0..01b586beb 100644 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 859, /**/ 858, /**/ -- -- 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/E1woPqz-00H1qh-Td%40256bit.org.