2007-07-18 Mike Kestner <mkestner@novell.com>
* gdk/EventExpose.cs : return a pointer from the get_area glue pinvoke to avoid VS crashes on win32. * gdk/glue/event.c : return a GdkRectangle* to avoid stack imbalance on VS debugger. [Fixes #82098] svn path=/trunk/gtk-sharp/; revision=82208
This commit is contained in:
parent
6e56090cfc
commit
0951a97f5a
3 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2007-07-18 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gdk/EventExpose.cs : return a pointer from the get_area glue
|
||||
pinvoke to avoid VS crashes on win32.
|
||||
* gdk/glue/event.c : return a GdkRectangle* to avoid stack imbalance
|
||||
on VS debugger. [Fixes #82098]
|
||||
|
||||
2007-07-17 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/Gtk.metadata : map TreeModelFilter ctor param to prop to
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Gdk {
|
|||
public class EventExpose : Event {
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern Rectangle gtksharp_gdk_event_expose_get_area (IntPtr evt);
|
||||
static extern IntPtr gtksharp_gdk_event_expose_get_area (IntPtr evt);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gdk_event_expose_get_region (IntPtr evt);
|
||||
|
@ -39,7 +39,7 @@ namespace Gdk {
|
|||
|
||||
public Rectangle Area {
|
||||
get {
|
||||
return gtksharp_gdk_event_expose_get_area (Handle);
|
||||
return (Gdk.Rectangle) Marshal.PtrToStructure (gtksharp_gdk_event_expose_get_area (Handle), typeof (Gdk.Rectangle));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ gdouble gtksharp_gdk_event_motion_get_x_root (GdkEventMotion *event);
|
|||
gdouble gtksharp_gdk_event_motion_get_y_root (GdkEventMotion *event);
|
||||
gdouble* gtksharp_gdk_event_motion_get_axes (GdkEventMotion *event);
|
||||
GdkDevice* gtksharp_gdk_event_motion_get_device (GdkEventMotion *event);
|
||||
GdkRectangle gtksharp_gdk_event_expose_get_area (GdkEventExpose *event);
|
||||
GdkRectangle* gtksharp_gdk_event_expose_get_area (GdkEventExpose *event);
|
||||
gint gtksharp_gdk_event_expose_get_count (GdkEventExpose *event);
|
||||
GdkRegion* gtksharp_gdk_event_expose_get_region (GdkEventExpose *event);
|
||||
GdkVisibilityState gtksharp_gdk_event_visibility_get_state (GdkEventVisibility *event);
|
||||
|
@ -306,10 +306,10 @@ gtksharp_gdk_event_motion_get_axes (GdkEventMotion *event)
|
|||
return event->axes;
|
||||
}
|
||||
|
||||
GdkRectangle
|
||||
GdkRectangle*
|
||||
gtksharp_gdk_event_expose_get_area (GdkEventExpose *event)
|
||||
{
|
||||
return event->area;
|
||||
return &event->area;
|
||||
}
|
||||
|
||||
gint
|
||||
|
|
Loading…
Reference in a new issue