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.

I downloaded and built with gtk-2. Looking through the includes didn't see a clue as to how to determine what version things were introduced.

However, I did come across, and am now using

   gtk_window_get_size(GTK_WINDOW(gui.mainwin), &w, &h);

The docs for 2 and 3 indicate it is best used in a configure event, so cool. And should care about GDK version.

Hoping it is available in all gtk-2 versions. If someone can inform how to check, I'd appreciate it.


Cheers,


--
--
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/318c4901-a0e1-ce5c-30f3-c7a1fce97b1a%40raelity.com.

Raspunde prin e-mail lui