Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add signal handler to the gtk_builder / glade example
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
<!-- This is a very simple XML UI file. --> | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<interface> | ||
<!-- interface-requires gtk+ 3.0 --> | ||
<object class="GtkWindow" id="main_window"> | ||
<property name="can_focus">False</property> | ||
<child> | ||
<object class="GtkButton" id="button1"> | ||
<property name="label" translatable="yes">button</property> | ||
<property name="use_action_appearance">False</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="receives_default">True</property> | ||
<property name="use_action_appearance">False</property> | ||
<signal name="clicked" handler="handle_button_click" swapped="no"/> | ||
</object> | ||
</child> | ||
</object> | ||
</interface> |