Quand on ferme la fenêtre, ça quitte.

This commit is contained in:
Raspbeguy 2014-04-10 14:43:10 +02:00
parent 64e93ae67b
commit 979230f880
2 changed files with 32 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface> <interface>
<!-- interface-requires gtk+ 3.6 --> <requires lib="gtk+" version="3.6"/>
<object class="GtkWindow" id="ajoutinstrument"> <object class="GtkWindow" id="ajoutinstrument">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child> <child>
@ -376,6 +377,18 @@
<property name="relief">none</property> <property name="relief">none</property>
<property name="focus_on_click">False</property> <property name="focus_on_click">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child internal-child="plus_button">
<object class="GtkButton" id="scalebutton-plus_button1">
<property name="can_focus">False</property>
<property name="receives_default">False</property>
</object>
</child>
<child internal-child="minus_button">
<object class="GtkButton" id="scalebutton-minus_button1">
<property name="can_focus">False</property>
<property name="receives_default">False</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
@ -392,6 +405,18 @@
<property name="relief">none</property> <property name="relief">none</property>
<property name="focus_on_click">False</property> <property name="focus_on_click">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child internal-child="plus_button">
<object class="GtkButton" id="scalebutton-plus_button2">
<property name="can_focus">False</property>
<property name="receives_default">False</property>
</object>
</child>
<child internal-child="minus_button">
<object class="GtkButton" id="scalebutton-minus_button2">
<property name="can_focus">False</property>
<property name="receives_default">False</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
@ -1505,6 +1530,7 @@
</object> </object>
<object class="GtkWindow" id="fenetreprincipale"> <object class="GtkWindow" id="fenetreprincipale">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<signal name="delete-event" handler="quitter" swapped="no"/>
<child> <child>
<object class="GtkBox" id="box2"> <object class="GtkBox" id="box2">
<property name="visible">True</property> <property name="visible">True</property>

View File

@ -124,3 +124,8 @@ void lancerLecture ()
debut(melodie, liste, nbrPortees); debut(melodie, liste, nbrPortees);
lecture(nbrPortees,melodie); lecture(nbrPortees,melodie);
} }
void quitter ()
{
gtk_main_quit();
}