diff --git a/hot.c b/hot.c index bdac0bf..d2926bb 100644 --- a/hot.c +++ b/hot.c @@ -15,6 +15,7 @@ static void on_experimental_expander_toggled(GtkExpander *expander, gpointer user_data){ gtk_expander_set_expanded (expander, gtk_expander_get_expanded (expander)); + printf(">>>>>>> %s <<<<<<<\n", gtk_expander_get_label (user_data)); } GtkBox *get_experimental_box_new(){ @@ -25,12 +26,13 @@ GtkBox *get_experimental_box_new(){ GtkExpander *hello = GTK_EXPANDER (gtk_expander_new ("hello !")); gtk_expander_set_expanded (GTK_EXPANDER (hello), TRUE); 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)); GtkExpander *it_s_me = GTK_EXPANDER (gtk_expander_new ("it's me !")); gtk_expander_set_expanded (GTK_EXPANDER (it_s_me), FALSE); 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(gtk_label_new ("\n\n"))); diff --git a/hot.o b/hot.o index 05ce873..8029d19 100644 Binary files a/hot.o and b/hot.o differ diff --git a/myprogram b/myprogram index 1f9ea01..8b49fbb 100755 Binary files a/myprogram and b/myprogram differ