2002-09-16 Martin Baulig <martin@gnome.org>
* 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
This commit is contained in:
parent
0998fd871a
commit
f058a1b5f8
4 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2002-09-16 Martin Baulig <martin@gnome.org>
|
||||||
|
|
||||||
|
* 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<72>ndez Pascual <ric@users.sourceforge.net>
|
2002-09-15 Ricardo Fern<72>ndez Pascual <ric@users.sourceforge.net>
|
||||||
|
|
||||||
* glade/XML.custom: Added a constructor to read the glade file
|
* glade/XML.custom: Added a constructor to read the glade file
|
||||||
|
|
|
@ -3,7 +3,7 @@ namespace Gnome
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
class Modules
|
public class Modules
|
||||||
{
|
{
|
||||||
[DllImport("libgnome-2.so.0")]
|
[DllImport("libgnome-2.so.0")]
|
||||||
static extern System.IntPtr libgnome_module_info_get ();
|
static extern System.IntPtr libgnome_module_info_get ();
|
||||||
|
|
|
@ -115,6 +115,7 @@ namespace GtkSamples {
|
||||||
sa.RetVal = true;
|
sa.RetVal = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case EventType.TwoButtonPress:
|
case EventType.TwoButtonPress:
|
||||||
ChangeItemColor (item);
|
ChangeItemColor (item);
|
||||||
sa.RetVal = true;
|
sa.RetVal = true;
|
||||||
|
|
|
@ -30,10 +30,10 @@ namespace GtkSamples {
|
||||||
darea.MotionNotifyEvent += new MotionNotifyEventHandler (MotionNotifyEvent);
|
darea.MotionNotifyEvent += new MotionNotifyEventHandler (MotionNotifyEvent);
|
||||||
darea.ButtonPressEvent += new ButtonPressEventHandler (ButtonPressEvent);
|
darea.ButtonPressEvent += new ButtonPressEventHandler (ButtonPressEvent);
|
||||||
darea.Events = (int)EventMask.ExposureMask |
|
darea.Events = (int)EventMask.ExposureMask |
|
||||||
EventMask.LeaveNotifyMask |
|
(int)EventMask.LeaveNotifyMask |
|
||||||
EventMask.ButtonPressMask |
|
(int)EventMask.ButtonPressMask |
|
||||||
EventMask.PointerMotionMask |
|
(int)EventMask.PointerMotionMask |
|
||||||
EventMask.PointerMotionHintMask;
|
(int)EventMask.PointerMotionHintMask;
|
||||||
|
|
||||||
win.ShowAll ();
|
win.ShowAll ();
|
||||||
Application.Run ();
|
Application.Run ();
|
||||||
|
|
Loading…
Reference in a new issue