mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
restore support for gtk/x11 on mac
This commit is contained in:
parent
b682b01ffa
commit
cd6ffc1b41
1 changed files with 5 additions and 1 deletions
|
|
@ -100,7 +100,11 @@ unsigned long get_native_handle(GdkWindow *gdkw){
|
|||
#elif defined(WIN32)
|
||||
return (unsigned long)GDK_WINDOW_HWND(gdkw);
|
||||
#elif defined(__APPLE__)
|
||||
return (unsigned long)gdk_quartz_window_get_nsview(gdkw);
|
||||
# ifdef HAVE_GTK_OSX /*let's assume the use of gtk-osx implies the use of gtk-quartz.*/
|
||||
return (unsigned long)gdk_quartz_window_get_nsview(gdkw);
|
||||
# else
|
||||
return (unsigned long)GDK_WINDOW_XID(gdkw);
|
||||
# endif
|
||||
#endif
|
||||
g_warning("No way to get the native handle from gdk window");
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue