Hisashi T Fujinaka wrote:
> > On Thu, 21 Apr 2022, Bram Moolenaar wrote: > > > >> > >>> After this commit I get this error: > >>> > >>> gui_gtk_x11.c:4139:14: error: implicit declaration of function > >>> 'gdk_window_get_width' is invalid in C99 [-Werror,-Wimplicit-function > >>> -declaration] > >>> int w = gdk_window_get_width(win); > >>> ^ > >>> gui_gtk_x11.c:4140:14: error: implicit declaration of function > >>> 'gdk_window_get_height' is invalid in C99 [-Werror,-Wimplicit-functio > >>> n-declaration] > >>> int h = gdk_window_get_height(win); > >>> ^ > >>> gui_gtk_x11.c:4140:14: note: did you mean 'gdk_window_get_origin'? > >>> /opt/sw/include/gtk-2.0/gdk/gdkwindow.h:541:12: note: > >>> 'gdk_window_get_origin' declared here > >>> gint gdk_window_get_origin (GdkWindow *window, > >>> ^ > >>> 2 errors generated. > >>> > >>> The Bisect looks like this: > >>> > >>> %git bisect good > >>> 280aebfd356c4fc8b84f13314068411157ad72f2 is the first bad commit > >>> commit 280aebfd356c4fc8b84f13314068411157ad72f2 > >>> Author: Bram Moolenaar <[email protected]> > >>> Date: Sun Apr 17 17:34:42 2022 +0100 > >>> > >>> patch 8.2.4775: SpellBad highlighting does not work in Konsole > >>> > >>> Problem: SpellBad highlighting does not work in Konsole. > >>> Solution: Do not keep t_8u defined for Konsole. Redraw when t_8u > >>> is reset. > >>> (closes #10177) > >>> > >>> src/term.c | 13 ++++++++++--- > >>> src/version.c | 2 ++ > >>> 2 files changed, 12 insertions(+), 3 deletions(-) > >> > >> That patch doesn't change anything for the gui_gtk_x11.c file or what > >> could be related to the error. > >> > >> The declarations should be in gdk/gdkwindow.h. Don't see a problem with > >> that. > >> > >> Perhaps configure didn't run correctly? > > > > Seemed odd to me too, but that's where I ended up with git bisect. I can > > retry the bisection if you'd like. > > OK, looks like it's the NEXT commit. > > git bisect bad > 9f53e7bd7f0865585a5447fa3665c5d4c4f91408 is the first bad commit > commit 9f53e7bd7f0865585a5447fa3665c5d4c4f91408 > Author: Ernie Rael <[email protected]> > Date: Sun Apr 17 18:27:49 2022 +0100 > > patch 8.2.4776: GTK: 'lines' and 'columns' may change during startup > > Problem: GTK: 'lines' and 'columns' may change during startup. > Solution: Ignore stale GTK resize events. (Ernie Rael, closes #10179) > > src/gui_gtk_x11.c | 168 > ++++++++++++++++++++++++++++++++++++++++++++++++++++-- > src/version.c | 2 + > 2 files changed, 164 insertions(+), 6 deletions(-) Yes, that makes sense, the functions were added in that patch. What I don't understand is why the header file isn't found. On my system the file included from gui_gtk_x11.c includes "gdk/gdk.h", which is found in /usr/include/gtk-3.0/gdk/gdk.h or in /usr/include/gtk-2.0/gdk/gdk.h. Both then include gdk/gdkwindow.h in the same directory which is where the declaration is found. What is different on your system? -- hundred-and-one symptoms of being an internet addict: 31. You code your homework in HTML and give your instructor the URL. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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/20220421215250.C10811C0330%40moolenaar.net.
