From f058a1b5f8b7ecdcf2aaedb298fdad263c5efbc6 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Mon, 16 Sep 2002 11:12:01 +0000 Subject: [PATCH] 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. svn path=/trunk/gtk-sharp/; revision=7493 --- ChangeLog | 9 +++++++++ gnome/Modules.cs | 2 +- sample/CanvasExample.cs | 1 + sample/Scribble.cs | 8 ++++---- 4 files changed, 15 insertions(+), 5 deletions(-) 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 ();