2002-07-18 Duncan Mak <duncan@ximian.com>

* TestCheckButton.cs:
	* TestDialog.cs:
	* TestFileSelection.cs:
	* TestFlipping.cs:
	* TestMenus.cs:
	* TestRadioButton.cs:
	* TestRange.cs:
	* TestStatusbar.cs:
	* TestTooltip.cs:  Removed erroneous references to SignalArgs, and
	changed EventHandlers to more appropriate specialized Handlers instead.

svn path=/trunk/gtk-sharp/; revision=5869
This commit is contained in:
Duncan Mak 2002-07-17 16:33:35 +00:00
parent e4b4ce171c
commit f3ad31837b
11 changed files with 20 additions and 24 deletions

View file

@ -1,3 +1,16 @@
2002-07-18 Duncan Mak <duncan@ximian.com>
* TestCheckButton.cs:
* TestDialog.cs:
* TestFileSelection.cs:
* TestFlipping.cs:
* TestMenus.cs:
* TestRadioButton.cs:
* TestRange.cs:
* TestStatusbar.cs:
* TestTooltip.cs: Removed erroneous references to SignalArgs, and
changed EventHandlers to more appropriate specialized Handlers instead.
2002-07-17 Duncan Mak <duncan@ximian.com> 2002-07-17 Duncan Mak <duncan@ximian.com>
* Makefile: * Makefile:

View file

@ -61,9 +61,7 @@ namespace WidgetViewer {
static void Close_Button (object o, EventArgs args) static void Close_Button (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
} }
} }

View file

@ -78,11 +78,9 @@ namespace WidgetViewer {
static void Color_Selection_Cancel (object o, EventArgs args) static void Color_Selection_Cancel (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
if (dialog != null) if (dialog != null)
dialog.Destroy (); dialog.Destroy ();
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
static void Display_Result (Gdk.Color color) static void Display_Result (Gdk.Color color)

View file

@ -21,7 +21,7 @@ namespace WidgetViewer {
public static Gtk.Window Create () public static Gtk.Window Create ()
{ {
window = new Dialog (); window = new Dialog ();
window.Response += new EventHandler (Print_Response); window.Response += new ResponseHandler (Print_Response);
window.SetDefaultSize (200, 100); window.SetDefaultSize (200, 100);
window.Title = "GtkDialog"; window.Title = "GtkDialog";
@ -46,16 +46,12 @@ namespace WidgetViewer {
static void Close_Button (object o, EventArgs args) static void Close_Button (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
static void Print_Response (object o, EventArgs args) static void Print_Response (object o, ResponseArgs args)
{ {
SignalArgs sa = (SignalArgs) args; Console.WriteLine ("Received response signal: " + args.ResponseId);
Console.WriteLine ("Received response signal: " + sa.Args [1]);
sa.RetVal = true;
} }
static void Label_Toggle (object o, EventArgs args) static void Label_Toggle (object o, EventArgs args)

View file

@ -57,9 +57,7 @@ namespace WidgetViewer {
static void file_selection_cancel (object o, EventArgs args) static void file_selection_cancel (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
} }
} }

View file

@ -63,9 +63,7 @@ namespace WidgetViewer {
static void Close_Button (object o, EventArgs args) static void Close_Button (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
} }
} }

View file

@ -135,7 +135,10 @@ namespace WidgetViewer {
if (i == 3) if (i == 3)
menuitem.Sensitive = false; menuitem.Sensitive = false;
menuitem.Submenu = Create_Menu ((depth - 1), true); Menu child = Create_Menu ((depth - 1), true);
if (child != null)
menuitem.Submenu = child;
} }
return menu; return menu;

View file

@ -80,9 +80,7 @@ namespace WidgetViewer {
static void Close_Button (object o, EventArgs args) static void Close_Button (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
} }
} }

View file

@ -88,9 +88,7 @@ namespace WidgetViewer {
static void Close_Button (object o, EventArgs args) static void Close_Button (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
static void reformat_value (object o, EventArgs args) static void reformat_value (object o, EventArgs args)

View file

@ -74,9 +74,7 @@ namespace WidgetViewer {
static void Close_Button (object o, EventArgs args) static void Close_Button (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
} }
} }

View file

@ -30,9 +30,7 @@ namespace WidgetViewer {
static void Window_Delete (object o, EventArgs args) static void Window_Delete (object o, EventArgs args)
{ {
SignalArgs sa = (SignalArgs) args;
window.Destroy (); window.Destroy ();
sa.RetVal = true;
} }
} }
} }