[gnome-devel-docs] Small change in checkbutton.vala



commit d9d8af9eb436468377dc69d22005b42c6ed275d8
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Wed May 9 15:59:15 2012 -0400

    Small change in checkbutton.vala

 platform-demos/C/samples/checkbutton.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/samples/checkbutton.vala b/platform-demos/C/samples/checkbutton.vala
index e9c21e7..dc059d1 100644
--- a/platform-demos/C/samples/checkbutton.vala
+++ b/platform-demos/C/samples/checkbutton.vala
@@ -7,7 +7,7 @@ class MyWindow : Gtk.ApplicationWindow {
 		this.border_width = 10;
 	
 		var checkbutton = new Gtk.CheckButton.with_label ("Show Title");
-		(checkbutton as Gtk.ToggleButton).toggled.connect (toggled_cb);
+		checkbutton.toggled.connect (toggled_cb);
 		this.add (checkbutton);
 		checkbutton.set_active (true);
 		checkbutton.show ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]