diff --git a/exec b/exec index 5058b60..bc4e8b4 100755 Binary files a/exec and b/exec differ diff --git a/main.c b/main.c index 9b1ec91..e60d282 100755 --- a/main.c +++ b/main.c @@ -1,3 +1,17 @@ +/* GtkBox GtkGrid GtkRevealer GtkStack + * GtkOverlay GtkPaned GtkExpander GtkFixed */ + +/* box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_widget_set_halign (box, GTK_ALIGN_FILL); + gtk_widget_set_valign (box, GTK_ALIGN_CENTER); * START CENTER END FILL * + gtk_window_set_child (GTK_WINDOW (window), box); + puis, après déclaration du bouton, gtk_box_append (GTK_BOX (box), button); */ + +/* grid = gtk_grid_new (); + gtk_window_set_child (GTK_WINDOW (window), grid); + button = gtk_button_new_with_label (" I "); n fois + gtk_grid_attach (GTK_GRID (grid), button, 0, 0, 1, 1); n fois */ + #include static void print (GtkWidget *widget, gpointer data) {g_print (data);} @@ -10,8 +24,8 @@ static void activate (GtkApplication *app, gpointer user_data) { window = gtk_application_window_new (app); gtk_window_set_title (GTK_WINDOW (window), "Window"); - grid = gtk_grid_new (); - gtk_window_set_child (GTK_WINDOW (window), grid); + grid = gtk_grid_new (); + gtk_window_set_child (GTK_WINDOW (window), grid); button = gtk_button_new_with_label (" I "); g_signal_connect (button, "clicked", G_CALLBACK (print), "I'm n°1\n");