diff --git a/ChangeLog b/ChangeLog index 7b826c9ff..d35951038 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-09-16 Martin Baulig + + * gnome/Modules.cs (Module): Make this class public. + + * sample/CanvasExample.cs: Insert a missing `break' in a switch + section to make this compile. + + * sample/Scribble.cs: Added missing casts from EventMask to int. + 2002-09-15 Ricardo Fernández Pascual * glade/XML.custom: Added a constructor to read the glade file diff --git a/gnome/Modules.cs b/gnome/Modules.cs index c99ee5642..a56909d52 100644 --- a/gnome/Modules.cs +++ b/gnome/Modules.cs @@ -3,7 +3,7 @@ namespace Gnome using System; using System.Runtime.InteropServices; - class Modules + public class Modules { [DllImport("libgnome-2.so.0")] static extern System.IntPtr libgnome_module_info_get (); diff --git a/sample/CanvasExample.cs b/sample/CanvasExample.cs index f8a32906a..f60b6fd77 100644 --- a/sample/CanvasExample.cs +++ b/sample/CanvasExample.cs @@ -115,6 +115,7 @@ namespace GtkSamples { sa.RetVal = true; return; } + break; case EventType.TwoButtonPress: ChangeItemColor (item); sa.RetVal = true; diff --git a/sample/Scribble.cs b/sample/Scribble.cs index 38895909b..de2b83524 100644 --- a/sample/Scribble.cs +++ b/sample/Scribble.cs @@ -30,10 +30,10 @@ namespace GtkSamples { darea.MotionNotifyEvent += new MotionNotifyEventHandler (MotionNotifyEvent); darea.ButtonPressEvent += new ButtonPressEventHandler (ButtonPressEvent); darea.Events = (int)EventMask.ExposureMask | - EventMask.LeaveNotifyMask | - EventMask.ButtonPressMask | - EventMask.PointerMotionMask | - EventMask.PointerMotionHintMask; + (int)EventMask.LeaveNotifyMask | + (int)EventMask.ButtonPressMask | + (int)EventMask.PointerMotionMask | + (int)EventMask.PointerMotionHintMask; win.ShowAll (); Application.Run ();