Merge branch 'master' of ssh://abwabwa.org:55555/home/git/ponytracker
This commit is contained in:
commit
14621f0f8b
|
@ -129,10 +129,11 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button6">
|
<object class="GtkButton" id="Play">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
|
<signal name="clicked" handler="lecture" swapped="no"/>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImage" id="image6">
|
<object class="GtkImage" id="image6">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
|
@ -0,0 +1,10 @@
|
||||||
|
all : premierTest clean
|
||||||
|
|
||||||
|
premierTest : premierTest.o
|
||||||
|
gcc -Wall premierTest.o -o premierTest `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0`
|
||||||
|
|
||||||
|
premierTest.o : premierTest.c
|
||||||
|
gcc -Wall -c premierTest.c `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0`
|
||||||
|
|
||||||
|
clean : premierTest
|
||||||
|
rm *~ *.o
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -0,0 +1,78 @@
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
int main( int argc, char *argv[] ) {
|
||||||
|
GtkBuilder *monBuilder;
|
||||||
|
GtkWidget *maFenetre;
|
||||||
|
|
||||||
|
gtk_init( &argc, &argv );
|
||||||
|
|
||||||
|
monBuilder = gtk_builder_new();
|
||||||
|
|
||||||
|
gtk_builder_add_from_file( monBuilder, "ponytracker.glade", NULL);
|
||||||
|
gtk_builder_connect_signals( monBuilder, NULL);
|
||||||
|
|
||||||
|
maFenetre = GTK_WIDGET( gtk_builder_get_object( monBuilder, "fenetrePrincipale"));
|
||||||
|
|
||||||
|
gtk_widget_show_all (maFenetre);
|
||||||
|
gtk_main();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void lecture ()
|
||||||
|
{
|
||||||
|
gtk_main_quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ajouterSample ( int argc, char *argv[] )
|
||||||
|
{
|
||||||
|
GtkBuilder *monBuilderSample;
|
||||||
|
GtkWidget *maFenetreSample;
|
||||||
|
|
||||||
|
gtk_init( &argc, &argv );
|
||||||
|
|
||||||
|
monBuilderSample = gtk_builder_new();
|
||||||
|
|
||||||
|
gtk_builder_add_from_file( monBuilderSample, "ponytracker.glade", NULL);
|
||||||
|
gtk_builder_connect_signals( monBuilderSample, NULL);
|
||||||
|
|
||||||
|
maFenetreSample = GTK_WIDGET( gtk_builder_get_object( monBuilderSample, "ajoutSample"));
|
||||||
|
|
||||||
|
gtk_widget_show_all (maFenetreSample);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ajouterInstrument ( int argc, char *argv[] )
|
||||||
|
{
|
||||||
|
GtkBuilder *monBuilderInstrument;
|
||||||
|
GtkWidget *maFenetreInstrument;
|
||||||
|
|
||||||
|
gtk_init( &argc, &argv );
|
||||||
|
|
||||||
|
monBuilderInstrument = gtk_builder_new();
|
||||||
|
|
||||||
|
gtk_builder_add_from_file( monBuilderInstrument, "ponytracker.glade", NULL);
|
||||||
|
gtk_builder_connect_signals( monBuilderInstrument, NULL);
|
||||||
|
|
||||||
|
maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object( monBuilderInstrument, "ajoutInstrument"));
|
||||||
|
|
||||||
|
gtk_widget_show_all (maFenetreInstrument);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ajouterMotif ( int argc, char *argv[] )
|
||||||
|
{
|
||||||
|
GtkBuilder *monBuilderMotif;
|
||||||
|
GtkWidget *maFenetreMotif;
|
||||||
|
|
||||||
|
gtk_init( &argc, &argv );
|
||||||
|
|
||||||
|
monBuilderMotif = gtk_builder_new();
|
||||||
|
|
||||||
|
gtk_builder_add_from_file( monBuilderMotif, "ponytracker.glade", NULL);
|
||||||
|
gtk_builder_connect_signals( monBuilderMotif, NULL);
|
||||||
|
|
||||||
|
maFenetreMotif = GTK_WIDGET( gtk_builder_get_object( monBuilderMotif, "ajoutMotif"));
|
||||||
|
|
||||||
|
gtk_widget_show_all (maFenetreMotif);
|
||||||
|
}
|
Loading…
Reference in New Issue