connected Yeaah

This commit is contained in:
Jean Sirmai 2024-05-15 08:22:48 +02:00
parent 71d670d0ce
commit 1eef2ad9c6
Signed by: jean
GPG Key ID: FB3115C340E057E3
3 changed files with 3 additions and 1 deletions

4
hot.c
View File

@ -15,6 +15,7 @@
static void on_experimental_expander_toggled(GtkExpander *expander, gpointer user_data){ static void on_experimental_expander_toggled(GtkExpander *expander, gpointer user_data){
gtk_expander_set_expanded (expander, gtk_expander_get_expanded (expander)); gtk_expander_set_expanded (expander, gtk_expander_get_expanded (expander));
printf(">>>>>>> %s <<<<<<<\n", gtk_expander_get_label (user_data));
} }
GtkBox *get_experimental_box_new(){ GtkBox *get_experimental_box_new(){
@ -25,12 +26,13 @@ GtkBox *get_experimental_box_new(){
GtkExpander *hello = GTK_EXPANDER (gtk_expander_new ("hello !")); GtkExpander *hello = GTK_EXPANDER (gtk_expander_new ("hello !"));
gtk_expander_set_expanded (GTK_EXPANDER (hello), TRUE); gtk_expander_set_expanded (GTK_EXPANDER (hello), TRUE);
gtk_widget_set_margin_start (GTK_WIDGET (hello), 0); gtk_widget_set_margin_start (GTK_WIDGET (hello), 0);
g_signal_connect (hello, "bidule", G_CALLBACK (on_experimental_expander_toggled), hello); g_signal_connect (hello, "activate", G_CALLBACK (on_experimental_expander_toggled), hello);
gtk_box_append (experimental_box, GTK_WIDGET (hello)); gtk_box_append (experimental_box, GTK_WIDGET (hello));
GtkExpander *it_s_me = GTK_EXPANDER (gtk_expander_new ("it's me !")); GtkExpander *it_s_me = GTK_EXPANDER (gtk_expander_new ("it's me !"));
gtk_expander_set_expanded (GTK_EXPANDER (it_s_me), FALSE); gtk_expander_set_expanded (GTK_EXPANDER (it_s_me), FALSE);
gtk_widget_set_margin_start(GTK_WIDGET (it_s_me), 20); gtk_widget_set_margin_start(GTK_WIDGET (it_s_me), 20);
g_signal_connect (hello, "activate", G_CALLBACK (on_experimental_expander_toggled), it_s_me);
gtk_box_append (experimental_box, GTK_WIDGET (it_s_me)); gtk_box_append (experimental_box, GTK_WIDGET (it_s_me));
gtk_box_append (experimental_box, GTK_WIDGET(gtk_label_new ("\n\n"))); gtk_box_append (experimental_box, GTK_WIDGET(gtk_label_new ("\n\n")));

BIN
hot.o

Binary file not shown.

BIN
myprogram

Binary file not shown.