mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
Fix build after vlad's struct patch got in.
svn path=/trunk/gtk-sharp/; revision=8959
This commit is contained in:
parent
c99bcc79df
commit
d1e99ecede
@ -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 ();
|
||||
}
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user