Permalink
Browse files

Signal instuructions

  • Loading branch information...
cannonerd committed Feb 13, 2012
1 parent 3b2a6d9 commit 8dc7da0de887e8ee36e76b9876c28c4e8ab0ae33
Showing with 5 additions and 1 deletion.
  1. +5 −1 mallard/toolbar.js.page
View
@@ -54,7 +54,11 @@ your_box.show_all();]]></code>
</section>
<section id="signal">
<title>Connecting to a signal</title>
- <p></p>
+ <p>The wayt to get toolbar items to perform anything, you need to listen to the signals they are sending. Gtk.ToolButton has a signal called "clicked". You just need to connect the button to the signal and tell the button what to do. </p>
+ <code mime="text/javascript" style="numbered"><![CDATA[
+buttonOpen.connect("clicked", function() {
+print("KLIKS!");
+});]]></code>
</section>
<section id="weatherapp.js">
<title>The weatherapp program with toolbar included.</title>

0 comments on commit 8dc7da0

Please sign in to comment.