mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 18:25:28 +00:00
2004-03-25 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : Widget.Events is a Gdk.EventMask, not int * sample/GtkDemo/DemoDrawingArea.cs : remove int casts * sample/Scribble.cs : remove int casts svn path=/trunk/gtk-sharp/; revision=24601
This commit is contained in:
parent
dff96be902
commit
48b08a3b7a
|
@ -1,3 +1,9 @@
|
|||
2004-03-25 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/Gtk.metadata : Widget.Events is a Gdk.EventMask, not int
|
||||
* sample/GtkDemo/DemoDrawingArea.cs : remove int casts
|
||||
* sample/Scribble.cs : remove int casts
|
||||
|
||||
2003-03-24 John Luke <jluke@cfl.rr.com>
|
||||
|
||||
* samples/gconf/Makefile.am:
|
||||
|
|
|
@ -254,6 +254,7 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetDefaultColormap']" name="needs_ref">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetDefaultStyle']" name="needs_ref">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetDefaultVisual']" name="needs_ref">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetEvents']/return-type" name="type">GdkEventMask</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetModifierStyle']" name="needs_ref">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetParentWindow']" name="needs_ref">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetStyle']" name="needs_ref">1</attr>
|
||||
|
@ -263,6 +264,7 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ListAccelClosures']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Path']/*/*[@type='gchar**']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Ref']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetEvents']/*/*[@type='gint']" name="type">GdkEventMask</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetScrollAdjustments']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetStyle']/*/*[@type='GtkStyle*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SizeRequest']/*/*[@name='requisition']" name="pass_as">ref</attr>
|
||||
|
|
|
@ -84,10 +84,8 @@ namespace GtkDemo {
|
|||
// Ask to receive events the drawing area doesn't normally
|
||||
// subscribe to
|
||||
|
||||
drawingArea1.Events = (int)EventMask.LeaveNotifyMask |
|
||||
(int)EventMask.ButtonPressMask |
|
||||
(int)EventMask.PointerMotionMask |
|
||||
(int)EventMask.PointerMotionHintMask;
|
||||
drawingArea1.Events = EventMask.LeaveNotifyMask | EventMask.ButtonPressMask |
|
||||
EventMask.PointerMotionMask | EventMask.PointerMotionHintMask;
|
||||
|
||||
window.ShowAll ();
|
||||
}
|
||||
|
|
|
@ -28,11 +28,9 @@ namespace GtkSamples {
|
|||
darea.ConfigureEvent += new ConfigureEventHandler (ConfigureEvent);
|
||||
darea.MotionNotifyEvent += new MotionNotifyEventHandler (MotionNotifyEvent);
|
||||
darea.ButtonPressEvent += new ButtonPressEventHandler (ButtonPressEvent);
|
||||
darea.Events = (int)EventMask.ExposureMask |
|
||||
(int)EventMask.LeaveNotifyMask |
|
||||
(int)EventMask.ButtonPressMask |
|
||||
(int)EventMask.PointerMotionMask |
|
||||
(int)EventMask.PointerMotionHintMask;
|
||||
darea.Events = EventMask.ExposureMask | EventMask.LeaveNotifyMask |
|
||||
EventMask.ButtonPressMask | EventMask.PointerMotionMask |
|
||||
EventMask.PointerMotionHintMask;
|
||||
|
||||
win.ShowAll ();
|
||||
Application.Run ();
|
||||
|
|
Loading…
Reference in a new issue