mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 14:55:40 +00:00
Update to Gtk+ 3.0.0 API.
* configure.ac: require gtk+-3.0.0 and glib-2.28.0 * gdk/gdk-api.raw: reparse * gdk/gdk-symbols.xml: add alias for Window (XID) to gulong * gtk/Plug.custom: update custom ctors to ulong XID versions. * gtk/gtk-api.raw: reparse * gtk/gtk-sharp.dll.config.in: change dllname remap to match 3.0.0 so. * sources/.gitignore: fix glib and gtk+ dirs * sources/Makefile.am: update to gtk+ 3.0.0 * sources/sources.xml: update to gtk+ 3.0.0
This commit is contained in:
parent
1794158599
commit
3ed7e0901e
|
@ -165,8 +165,8 @@ AC_SUBST(LIB_PREFIX)
|
|||
AC_SUBST(LIB_SUFFIX)
|
||||
AC_SUBST(GENERATED_SOURCES)
|
||||
|
||||
GTK_REQUIRED_VERSION=2.99.0
|
||||
GLIB_REQUIRED_VERSION=2.27.90
|
||||
GTK_REQUIRED_VERSION=3.0.0
|
||||
GLIB_REQUIRED_VERSION=2.28.0
|
||||
|
||||
PKG_CHECK_MODULES(GLIB, gobject-2.0 >= $GLIB_REQUIRED_VERSION)
|
||||
AC_SUBST(GLIB_CFLAGS)
|
||||
|
|
128
gdk/gdk-api.raw
128
gdk/gdk-api.raw
|
@ -125,10 +125,10 @@
|
|||
<member cname="GDK_ACTION_ASK" name="Ask" value="1 << 5" />
|
||||
</enum>
|
||||
<enum name="DragProtocol" cname="GdkDragProtocol" gtype="gdk_drag_protocol_get_type" type="enum">
|
||||
<member cname="GDK_DRAG_PROTO_NONE" name="None" />
|
||||
<member cname="GDK_DRAG_PROTO_MOTIF" name="Motif" />
|
||||
<member cname="GDK_DRAG_PROTO_XDND" name="Xdnd" />
|
||||
<member cname="GDK_DRAG_PROTO_ROOTWIN" name="Rootwin" />
|
||||
<member cname="GDK_DRAG_PROTO_NONE" name="None" />
|
||||
<member cname="GDK_DRAG_PROTO_WIN32_DROPFILES" name="Win32Dropfiles" />
|
||||
<member cname="GDK_DRAG_PROTO_OLE2" name="Ole2" />
|
||||
<member cname="GDK_DRAG_PROTO_LOCAL" name="Local" />
|
||||
|
@ -871,10 +871,7 @@
|
|||
<method vm="get_cursor_for_name" />
|
||||
<method vm="get_cursor_for_pixbuf" />
|
||||
<method vm="list_devices" />
|
||||
<method vm="send_client_message" />
|
||||
<method vm="add_client_message_filter" />
|
||||
<method vm="get_app_launch_context" />
|
||||
<method vm="get_drag_protocol" />
|
||||
<method vm="before_process_all_updates" />
|
||||
<method vm="after_process_all_updates" />
|
||||
<method vm="get_next_serial" />
|
||||
|
@ -1027,33 +1024,10 @@
|
|||
<return-type type="GList*" />
|
||||
<parameters />
|
||||
</virtual_method>
|
||||
<virtual_method name="SendClientMessage" cname="send_client_message">
|
||||
<return-type type="gboolean" />
|
||||
<parameters>
|
||||
<parameter type="GdkEvent*" name="event" />
|
||||
<parameter type="GdkNativeWindow" name="winid" />
|
||||
</parameters>
|
||||
</virtual_method>
|
||||
<virtual_method name="AddClientMessageFilter" cname="add_client_message_filter">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkAtom" name="message_type" />
|
||||
<parameter type="GdkFilterFunc" name="func" />
|
||||
<parameter type="gpointer" name="data" />
|
||||
</parameters>
|
||||
</virtual_method>
|
||||
<virtual_method name="GetAppLaunchContext" cname="get_app_launch_context">
|
||||
<return-type type="GdkAppLaunchContext*" />
|
||||
<parameters />
|
||||
</virtual_method>
|
||||
<virtual_method name="GetDragProtocol" cname="get_drag_protocol">
|
||||
<return-type type="GdkNativeWindow" />
|
||||
<parameters>
|
||||
<parameter type="GdkNativeWindow" name="winid" />
|
||||
<parameter type="GdkDragProtocol*" name="protocol" />
|
||||
<parameter type="guint*" name="version" />
|
||||
</parameters>
|
||||
</virtual_method>
|
||||
<virtual_method name="BeforeProcessAllUpdates" cname="before_process_all_updates">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
|
@ -1128,7 +1102,7 @@
|
|||
<virtual_method name="SendSelectionNotify" cname="send_selection_notify">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkNativeWindow" name="requestor" />
|
||||
<parameter type="GdkWindow*" name="requestor" />
|
||||
<parameter type="GdkAtom" name="selection" />
|
||||
<parameter type="GdkAtom" name="target" />
|
||||
<parameter type="GdkAtom" name="property" />
|
||||
|
@ -1169,14 +1143,6 @@
|
|||
<parameter type="const-gchar*" name="text" />
|
||||
</parameters>
|
||||
</virtual_method>
|
||||
<method name="AddClientMessageFilter" cname="gdk_display_add_client_message_filter">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkAtom" name="message_type" />
|
||||
<parameter type="GdkFilterFunc" name="func" />
|
||||
<parameter type="gpointer" name="data" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Beep" cname="gdk_display_beep">
|
||||
<return-type type="void" />
|
||||
</method>
|
||||
|
@ -1930,12 +1896,6 @@
|
|||
<parameter type="gint*" name="count" />
|
||||
</parameters>
|
||||
</virtual_method>
|
||||
<method name="BroadcastClientMessage" cname="gdk_screen_broadcast_client_message">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkEvent*" name="event" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetActiveWindow" cname="gdk_screen_get_active_window">
|
||||
<return-type type="GdkWindow*" />
|
||||
</method>
|
||||
|
@ -2395,6 +2355,12 @@
|
|||
<method name="GetDisplay" cname="gdk_window_get_display">
|
||||
<return-type type="GdkDisplay*" />
|
||||
</method>
|
||||
<method name="GetDragProtocol" cname="gdk_window_get_drag_protocol">
|
||||
<return-type type="GdkDragProtocol" />
|
||||
<parameters>
|
||||
<parameter type="GdkWindow**" name="target" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetEffectiveParent" cname="gdk_window_get_effective_parent">
|
||||
<return-type type="GdkWindow*" />
|
||||
</method>
|
||||
|
@ -2977,14 +2943,6 @@
|
|||
<field name="XRoot" cname="x_root" type="gdouble" />
|
||||
<field name="YRoot" cname="y_root" type="gdouble" />
|
||||
</struct>
|
||||
<struct name="EventClient" cname="GdkEventClient">
|
||||
<field name="Type" cname="type" type="GdkEventType" />
|
||||
<field name="Window" cname="window" type="GdkWindow*" />
|
||||
<field name="SendEvent" cname="send_event" type="gint8" />
|
||||
<field name="MessageType" cname="message_type" type="GdkAtom" />
|
||||
<field name="DataFormat" cname="data_format" type="gushort" />
|
||||
<field name="B" cname="b" array_len="20" type="char" />
|
||||
</struct>
|
||||
<struct name="EventConfigure" cname="GdkEventConfigure">
|
||||
<field name="Type" cname="type" type="GdkEventType" />
|
||||
<field name="Window" cname="window" type="GdkWindow*" />
|
||||
|
@ -3072,7 +3030,7 @@
|
|||
<field name="Type" cname="type" type="GdkEventType" />
|
||||
<field name="Window" cname="window" type="GdkWindow*" />
|
||||
<field name="SendEvent" cname="send_event" type="gint8" />
|
||||
<field name="Owner" cname="owner" type="GdkNativeWindow" />
|
||||
<field name="Owner" cname="owner" type="GdkWindow*" />
|
||||
<field name="Reason" cname="reason" type="GdkOwnerChange" />
|
||||
<field name="Selection" cname="selection" type="GdkAtom" />
|
||||
<field name="Time" cname="time" type="guint32" />
|
||||
|
@ -3114,7 +3072,7 @@
|
|||
<field name="Target" cname="target" type="GdkAtom" />
|
||||
<field name="Property" cname="property" type="GdkAtom" />
|
||||
<field name="Time" cname="time" type="guint32" />
|
||||
<field name="Requestor" cname="requestor" type="GdkNativeWindow" />
|
||||
<field name="Requestor" cname="requestor" type="GdkWindow*" />
|
||||
</struct>
|
||||
<struct name="EventSetting" cname="GdkEventSetting">
|
||||
<field name="Type" cname="type" type="GdkEventType" />
|
||||
|
@ -3156,7 +3114,6 @@
|
|||
<field name="Group" cname="group" type="gint" />
|
||||
<field name="Level" cname="level" type="gint" />
|
||||
</struct>
|
||||
<alias name="NativeWindow" cname="GdkNativeWindow" type="guint32" />
|
||||
<struct name="OffscreenWindow" cname="GdkOffscreenWindow" opaque="true">
|
||||
<method name="GetEmbedder" cname="gdk_offscreen_window_get_embedder" shared="true">
|
||||
<return-type type="GdkWindow*" />
|
||||
|
@ -3267,14 +3224,6 @@
|
|||
</method>
|
||||
</struct>
|
||||
<class name="Global" cname="GdkGlobal">
|
||||
<method name="AddClientMessageFilter" cname="gdk_add_client_message_filter" shared="true">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkAtom" name="message_type" />
|
||||
<parameter type="GdkFilterFunc" name="func" />
|
||||
<parameter type="gpointer" name="data" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="AddOptionEntriesLibgtkOnly" cname="gdk_add_option_entries_libgtk_only" shared="true">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
|
@ -3408,8 +3357,8 @@
|
|||
<parameters>
|
||||
<parameter type="cairo_t*" name="cr" />
|
||||
<parameter type="const-GdkPixbuf*" name="pixbuf" />
|
||||
<parameter type="double" name="pixbuf_x" />
|
||||
<parameter type="double" name="pixbuf_y" />
|
||||
<parameter type="gdouble" name="pixbuf_x" />
|
||||
<parameter type="gdouble" name="pixbuf_y" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SetSourceRgba" cname="gdk_cairo_set_source_rgba" shared="true">
|
||||
|
@ -3424,8 +3373,8 @@
|
|||
<parameters>
|
||||
<parameter type="cairo_t*" name="cr" />
|
||||
<parameter type="GdkWindow*" name="window" />
|
||||
<parameter type="double" name="x" />
|
||||
<parameter type="double" name="y" />
|
||||
<parameter type="gdouble" name="x" />
|
||||
<parameter type="gdouble" name="y" />
|
||||
</parameters>
|
||||
</method>
|
||||
</class>
|
||||
|
@ -3477,14 +3426,6 @@
|
|||
<parameter type="GdkDragProtocol*" name="protocol" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetProtocolForDisplay" cname="gdk_drag_get_protocol_for_display" shared="true">
|
||||
<return-type type="GdkNativeWindow" />
|
||||
<parameters>
|
||||
<parameter type="GdkDisplay*" name="display" />
|
||||
<parameter type="GdkNativeWindow" name="xid" />
|
||||
<parameter type="GdkDragProtocol*" name="protocol" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetSelection" cname="gdk_drag_get_selection" shared="true">
|
||||
<return-type type="GdkAtom" />
|
||||
<parameters>
|
||||
|
@ -3642,27 +3583,6 @@
|
|||
<parameter type="const-GdkEventMotion*" name="event" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SendClientMessage" cname="gdk_event_send_client_message" shared="true">
|
||||
<return-type type="gboolean" />
|
||||
<parameters>
|
||||
<parameter type="GdkEvent*" name="event" />
|
||||
<parameter type="GdkNativeWindow" name="winid" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SendClientMessageForDisplay" cname="gdk_event_send_client_message_for_display" shared="true">
|
||||
<return-type type="gboolean" />
|
||||
<parameters>
|
||||
<parameter type="GdkDisplay*" name="display" />
|
||||
<parameter type="GdkEvent*" name="event" />
|
||||
<parameter type="GdkNativeWindow" name="winid" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SendClientmessageToall" cname="gdk_event_send_clientmessage_toall" shared="true">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkEvent*" name="event" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SetDevice" cname="gdk_event_set_device" shared="true">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
|
@ -3830,20 +3750,20 @@
|
|||
<return-type type="GdkPixbuf*" />
|
||||
<parameters>
|
||||
<parameter type="cairo_surface_t*" name="surface" />
|
||||
<parameter type="int" name="src_x" />
|
||||
<parameter type="int" name="src_y" />
|
||||
<parameter type="int" name="width" />
|
||||
<parameter type="int" name="height" />
|
||||
<parameter type="gint" name="src_x" />
|
||||
<parameter type="gint" name="src_y" />
|
||||
<parameter type="gint" name="width" />
|
||||
<parameter type="gint" name="height" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetFromWindow" cname="gdk_pixbuf_get_from_window" shared="true">
|
||||
<return-type type="GdkPixbuf*" />
|
||||
<parameters>
|
||||
<parameter type="GdkWindow*" name="window" />
|
||||
<parameter type="int" name="src_x" />
|
||||
<parameter type="int" name="src_y" />
|
||||
<parameter type="int" name="width" />
|
||||
<parameter type="int" name="height" />
|
||||
<parameter type="gint" name="src_x" />
|
||||
<parameter type="gint" name="src_y" />
|
||||
<parameter type="gint" name="width" />
|
||||
<parameter type="gint" name="height" />
|
||||
</parameters>
|
||||
</method>
|
||||
</class>
|
||||
|
@ -3996,7 +3916,7 @@
|
|||
<method name="SendNotify" cname="gdk_selection_send_notify" shared="true">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkNativeWindow" name="requestor" />
|
||||
<parameter type="GdkWindow*" name="requestor" />
|
||||
<parameter type="GdkAtom" name="selection" />
|
||||
<parameter type="GdkAtom" name="target" />
|
||||
<parameter type="GdkAtom" name="property" />
|
||||
|
@ -4007,7 +3927,7 @@
|
|||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GdkDisplay*" name="display" />
|
||||
<parameter type="GdkNativeWindow" name="requestor" />
|
||||
<parameter type="GdkWindow*" name="requestor" />
|
||||
<parameter type="GdkAtom" name="selection" />
|
||||
<parameter type="GdkAtom" name="target" />
|
||||
<parameter type="GdkAtom" name="property" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<api>
|
||||
<symbol type="alias" cname="GdkBitmap" name="GdkPixmap" />
|
||||
<symbol type="alias" cname="Window" name="gulong" />
|
||||
<symbol type="marshal" cname="GdkEvent" name="Gdk.Event" marshal_type="IntPtr" call_fmt="{0}.Handle" from_fmt="Gdk.Event.GetEvent ({0})"/>
|
||||
<symbol type="marshal" cname="GdkEventAny" name="Gdk.Event" marshal_type="IntPtr" call_fmt="{0}.Handle" from_fmt="Gdk.Event.GetEvent ({0})"/>
|
||||
<symbol type="manual" cname="GdkEventButton" name="Gdk.EventButton"/>
|
||||
|
|
|
@ -22,28 +22,28 @@
|
|||
|
||||
|
||||
[DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_plug_new(uint socket_id);
|
||||
static extern IntPtr gtk_plug_new(UIntPtr socket_id);
|
||||
|
||||
public Plug (uint socket_id) : base (IntPtr.Zero)
|
||||
public Plug (ulong socket_id) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Plug)) {
|
||||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
Construct (socket_id);
|
||||
return;
|
||||
}
|
||||
Raw = gtk_plug_new(socket_id);
|
||||
Raw = gtk_plug_new (new UIntPtr (socket_id));
|
||||
}
|
||||
|
||||
[DllImport ("libgtk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtk_plug_new_for_display(IntPtr display, uint socket_id);
|
||||
static extern IntPtr gtk_plug_new_for_display(IntPtr display, UIntPtr socket_id);
|
||||
|
||||
public Plug (Gdk.Display display, uint socket_id) : base (IntPtr.Zero)
|
||||
public Plug (Gdk.Display display, ulong socket_id) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Plug)) {
|
||||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
ConstructForDisplay (display, socket_id);
|
||||
return;
|
||||
}
|
||||
Raw = gtk_plug_new_for_display(display.Handle, socket_id);
|
||||
Raw = gtk_plug_new_for_display (display.Handle, new UIntPtr (socket_id));
|
||||
}
|
||||
|
||||
|
|
560
gtk/gtk-api.raw
560
gtk/gtk-api.raw
File diff suppressed because it is too large
Load diff
|
@ -2,5 +2,5 @@
|
|||
<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libatk-1.0-0.dll" target="libatk-1.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libgtk-win32-3.0-0.dll" target="libgtk-3.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libgtk-win32-3.0-0.dll" target="libgtk-3@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
</configuration>
|
||||
|
|
4
sources/.gitignore
vendored
4
sources/.gitignore
vendored
|
@ -1,5 +1,5 @@
|
|||
atk-1.32.0/
|
||||
gdk-pixbuf-2.22.1/
|
||||
glib-2.27.90/
|
||||
gtk+-2.99.0/
|
||||
glib-2.28.0/
|
||||
gtk+-3.0.0/
|
||||
pango-1.28.3/
|
||||
|
|
|
@ -3,14 +3,14 @@ EXTRA_DIST = \
|
|||
sources.xml \
|
||||
gtk_tree_model_signal_fix.patch
|
||||
|
||||
TARGET_GTK_VERSION=2.99.0
|
||||
TARGET_GTK_VERSION=3.0.0
|
||||
|
||||
GTK_DOWNLOADS = \
|
||||
http://ftp.gnome.org/pub/GNOME/sources/glib/2.27/glib-2.27.90.tar.bz2 \
|
||||
http://ftp.gnome.org/pub/GNOME/sources/glib/2.28/glib-2.28.0.tar.bz2 \
|
||||
http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.3.tar.bz2 \
|
||||
http://ftp.gnome.org/pub/GNOME/sources/atk/1.32/atk-1.32.0.tar.bz2 \
|
||||
http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.22/gdk-pixbuf-2.22.1.tar.bz2 \
|
||||
http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.99/gtk+-$(TARGET_GTK_VERSION).tar.bz2
|
||||
http://ftp.gnome.org/pub/GNOME/sources/gtk+/3.0/gtk+-$(TARGET_GTK_VERSION).tar.bz2
|
||||
|
||||
api:
|
||||
PATH=../parser:$$PATH $(RUNTIME) ../parser/gapi-parser.exe sources.xml
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<api filename="../gio/gio-api.raw">
|
||||
<library name="libgio-2.0-0.dll">
|
||||
<namespace name="G">
|
||||
<directory path="glib-2.27.90/gio">
|
||||
<directory path="glib-2.28.0/gio">
|
||||
<exclude>gasynchelper.h</exclude>
|
||||
<exclude>gcontenttypeprivate.h</exclude>
|
||||
<exclude>gdelayedsettingsbackend.h</exclude>
|
||||
|
@ -90,7 +90,7 @@
|
|||
<api filename="../gdk/gdk-api.raw">
|
||||
<library name="libgdk-win32-3.0-0.dll">
|
||||
<namespace name="Gdk">
|
||||
<directory path="gtk+-2.99.0/gdk">
|
||||
<directory path="gtk+-3.0.0/gdk">
|
||||
<exclude>gdkalias.h</exclude>
|
||||
<exclude>gdkwindowimpl.h</exclude>
|
||||
<exclude>keyname-table.h</exclude>
|
||||
|
@ -114,7 +114,7 @@
|
|||
<api filename="../gtk/gtk-api.raw">
|
||||
<library name="libgtk-win32-3.0-0.dll">
|
||||
<namespace name="Gtk">
|
||||
<directory path="gtk+-2.99.0/gtk">
|
||||
<directory path="gtk+-3.0.0/gtk">
|
||||
<!-- Internal stuff -->
|
||||
<exclude>gtkalias.h</exclude>
|
||||
<exclude>gtkappchooseronline.h</exclude>
|
||||
|
|
Loading…
Reference in a new issue