mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
tests: Make editing window look more beautiful
This commit is contained in:
parent
7b732ffb73
commit
5e08c315b2
@ -457,45 +457,53 @@ manual_clicked (GtkWidget *button,
|
|||||||
|
|
||||||
|
|
||||||
label = gtk_label_new ("x:");
|
label = gtk_label_new ("x:");
|
||||||
|
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
label,
|
label,
|
||||||
0, 1,
|
0, 1,
|
||||||
0, 1);
|
0, 1);
|
||||||
label = gtk_label_new ("y:");
|
label = gtk_label_new ("y:");
|
||||||
|
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
label,
|
label,
|
||||||
0, 1,
|
0, 1,
|
||||||
1, 2);
|
1, 2);
|
||||||
label = gtk_label_new ("width:");
|
label = gtk_label_new ("width:");
|
||||||
|
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
label,
|
label,
|
||||||
0, 1,
|
0, 1,
|
||||||
2, 3);
|
2, 3);
|
||||||
label = gtk_label_new ("height:");
|
label = gtk_label_new ("height:");
|
||||||
|
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
label,
|
label,
|
||||||
0, 1,
|
0, 1,
|
||||||
3, 4);
|
3, 4);
|
||||||
|
|
||||||
xspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
xspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
||||||
|
gtk_widget_set_hexpand (xspin, TRUE);
|
||||||
gtk_spin_button_set_value (GTK_SPIN_BUTTON (xspin), x);
|
gtk_spin_button_set_value (GTK_SPIN_BUTTON (xspin), x);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
xspin,
|
xspin,
|
||||||
1, 2,
|
1, 2,
|
||||||
0, 1);
|
0, 1);
|
||||||
yspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
yspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
||||||
|
gtk_widget_set_hexpand (yspin, TRUE);
|
||||||
gtk_spin_button_set_value (GTK_SPIN_BUTTON (yspin), y);
|
gtk_spin_button_set_value (GTK_SPIN_BUTTON (yspin), y);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
yspin,
|
yspin,
|
||||||
1, 2,
|
1, 2,
|
||||||
1, 2);
|
1, 2);
|
||||||
wspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
wspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
||||||
|
gtk_widget_set_hexpand (wspin, TRUE);
|
||||||
gtk_spin_button_set_value (GTK_SPIN_BUTTON (wspin), w);
|
gtk_spin_button_set_value (GTK_SPIN_BUTTON (wspin), w);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
wspin,
|
wspin,
|
||||||
1, 2,
|
1, 2,
|
||||||
2, 3);
|
2, 3);
|
||||||
hspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
hspin = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 1);
|
||||||
|
gtk_widget_set_hexpand (hspin, TRUE);
|
||||||
gtk_spin_button_set_value (GTK_SPIN_BUTTON (hspin), h);
|
gtk_spin_button_set_value (GTK_SPIN_BUTTON (hspin), h);
|
||||||
gtk_table_attach_defaults (GTK_TABLE (table),
|
gtk_table_attach_defaults (GTK_TABLE (table),
|
||||||
hspin,
|
hspin,
|
||||||
|
Loading…
Reference in New Issue
Block a user