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
2 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ namespace WidgetViewer {
|
||||||
box1.PackStart (box2, false, false, 0);
|
box1.PackStart (box2, false, false, 0);
|
||||||
|
|
||||||
Button button = Button.NewFromStock (Stock.Close);
|
Button button = Button.NewFromStock (Stock.Close);
|
||||||
button.Clicked += new EventHandler (Close_Button);
|
button.Clicked += new EventHandler (OnCloseClicked);
|
||||||
button.CanDefault = true;
|
button.CanDefault = true;
|
||||||
|
|
||||||
box2.PackStart (button, true, true, 0);
|
box2.PackStart (button, true, true, 0);
|
||||||
|
@ -59,7 +59,7 @@ namespace WidgetViewer {
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Close_Button (object o, EventArgs args)
|
static void OnCloseClicked (object o, EventArgs args)
|
||||||
{
|
{
|
||||||
window.Destroy ();
|
window.Destroy ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ namespace WidgetViewer {
|
||||||
static void Color_Selection_OK (object o, EventArgs args)
|
static void Color_Selection_OK (object o, EventArgs args)
|
||||||
{
|
{
|
||||||
Gdk.Color selected = window.ColorSelection.CurrentColor;
|
Gdk.Color selected = window.ColorSelection.CurrentColor;
|
||||||
if (selected.IsNull)
|
if (selected == Gdk.Color.Zero)
|
||||||
Console.WriteLine ("Color selection failed.");
|
Console.WriteLine ("Color selection failed.");
|
||||||
else {
|
else {
|
||||||
window.Hide ();
|
window.Hide ();
|
||||||
|
@ -109,7 +109,7 @@ namespace WidgetViewer {
|
||||||
|
|
||||||
static void Display_Result (Gdk.Color color)
|
static void Display_Result (Gdk.Color color)
|
||||||
{
|
{
|
||||||
if (color.IsNull)
|
if (color == Gdk.Color.Zero)
|
||||||
Console.WriteLine ("Null color");
|
Console.WriteLine ("Null color");
|
||||||
|
|
||||||
dialog = new Dialog ();
|
dialog = new Dialog ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue