Skip to content

Commit

Permalink
Adapt the ui file to ruby
Browse files Browse the repository at this point in the history
In C , the property object="window1" is used to define the argument for
the handler of the signal. In this ruby demo, the window1 element is
stored in the window instance variable.
  • Loading branch information
cedlemo committed Dec 12, 2017
1 parent 6449c3e commit 436e15f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gtk3/sample/gtk-demo/shortcuts.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,49 +14,49 @@
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">Builder</property>
<signal name="clicked" handler="builder_shortcuts" swapped="1" object="window1"/>
<signal name="clicked" handler="builder_shortcuts" swapped="1"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">GEdit</property>
<signal name="clicked" handler="gedit_shortcuts" swapped="1" object="window1"/>
<signal name="clicked" handler="gedit_shortcuts" swapped="1"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">Clocks - All</property>
<signal name="clicked" handler="clocks_shortcuts" swapped="1" object="window1"/>
<signal name="clicked" handler="clocks_shortcuts" swapped="1"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">Clocks - Stopwatch</property>
<signal name="clicked" handler="clocks_shortcuts_stopwatch" swapped="1" object="window1"/>
<signal name="clicked" handler="clocks_shortcuts_stopwatch" swapped="1"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">Boxes</property>
<signal name="clicked" handler="boxes_shortcuts" swapped="1" object="window1"/>
<signal name="clicked" handler="boxes_shortcuts" swapped="1"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">Boxes - Wizard</property>
<signal name="clicked" handler="boxes_shortcuts_wizard" swapped="1" object="window1"/>
<signal name="clicked" handler="boxes_shortcuts_wizard" swapped="1"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">1</property>
<property name="label">Boxes - Display</property>
<signal name="clicked" handler="boxes_shortcuts_display" swapped="1" object="window1"/>
<signal name="clicked" handler="boxes_shortcuts_display" swapped="1"/>
</object>
</child>
</object>
Expand Down

0 comments on commit 436e15f

Please sign in to comment.