une grille pour plusieurs boutons (mini commit)
This commit is contained in:
parent
f2835b9bb0
commit
4157c93edf
14
main.c
14
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 <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
static void print (GtkWidget *widget, gpointer data) {g_print (data);}
|
static void print (GtkWidget *widget, gpointer data) {g_print (data);}
|
||||||
|
|
Loading…
Reference in New Issue