> On 4/21/22 6:20 PM, James McCoy wrote:
> > On Thu, Apr 21, 2022 at 03:21:41PM -0700, Hisashi T Fujinaka wrote:
> >> On Thu, 21 Apr 2022, Bram Moolenaar wrote:
> >>> 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?
> >> You're using gtk-3. I have gtk-2.
> > They were added in GDK 2.24 and gtk_widget_get_window was added in GTK
> > 2.14, in case someone wants to make a patch with proper version
> > checking.
>
> Thanks for the info. I'm guessing this needs to be supported?
>
> I'll look around probably be able to craft a patch. "#if <expr>" is
> allowed in vim source? Biggest problem will be testing, patch review
> probably goes a long way.
You can use:
#if GTK_CHECK_VERSION(2,14,0)
Perhaps before GTK 2.14 there was another way to get the window size?
Looks like this is gdk_drawable_get_size(). Although it looks like that
is an even newer function.
--
Have you heard about the new Beowulf cluster? It's so fast, it executes
an infinite loop in 6 seconds.
/// 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/20220422095624.A30481C43DE%40moolenaar.net.