Fix build after vlad's struct patch got in.

svn path=/trunk/gtk-sharp/; revision=8959
This commit is contained in:
Duncan Mak 2002-11-12 21:51:45 +00:00
parent c99bcc79df
commit d1e99ecede
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ namespace WidgetViewer {
box1.PackStart (box2, false, false, 0);
Button button = Button.NewFromStock (Stock.Close);
button.Clicked += new EventHandler (Close_Button);
button.Clicked += new EventHandler (OnCloseClicked);
button.CanDefault = true;
box2.PackStart (button, true, true, 0);
@ -59,7 +59,7 @@ namespace WidgetViewer {
return window;
}
static void Close_Button (object o, EventArgs args)
static void OnCloseClicked (object o, EventArgs args)
{
window.Destroy ();
}

View File

@ -88,7 +88,7 @@ namespace WidgetViewer {
static void Color_Selection_OK (object o, EventArgs args)
{
Gdk.Color selected = window.ColorSelection.CurrentColor;
if (selected.IsNull)
if (selected == Gdk.Color.Zero)
Console.WriteLine ("Color selection failed.");
else {
window.Hide ();
@ -109,7 +109,7 @@ namespace WidgetViewer {
static void Display_Result (Gdk.Color color)
{
if (color.IsNull)
if (color == Gdk.Color.Zero)
Console.WriteLine ("Null color");
dialog = new Dialog ();