diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-07-28 20:03:56 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-07-28 20:03:56 +0200 |
commit | 962b028162a652fc829046061e3a9295d30e74af (patch) | |
tree | fb2c76690232e4ade68e288e5b01894dd394b8b7 /src | |
parent | 39dd8997ea1f4c2533a0a8d1d8aa7cacff8a83fb (diff) |
Don't need all directions for offset
Diffstat (limited to 'src')
-rw-r--r-- | src/stylesheet.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index f9a0efa..5d90d92 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -241,26 +241,22 @@ static void do_layout(struct _stylesheetwindow *s, GtkWidget *b) label = gtk_label_new("Offset from centre:"); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 5); - table = gtk_table_new(3, 3, TRUE); + table = gtk_table_new(2, 2, TRUE); gtk_table_set_row_spacings(GTK_TABLE(table), 5.0); gtk_table_set_col_spacings(GTK_TABLE(table), 5.0); gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); - /* Left */ - spin = gtk_spin_button_new_with_range(0.0, 1024.0, 1.0); - gtk_table_attach_defaults(GTK_TABLE(table), spin, 0, 1, 1, 2); - /* Up */ + label = gtk_label_new("Upwards:"); + gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1); spin = gtk_spin_button_new_with_range(0.0, 1024.0, 1.0); gtk_table_attach_defaults(GTK_TABLE(table), spin, 1, 2, 0, 1); /* Right */ + label = gtk_label_new("Across:"); + gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); spin = gtk_spin_button_new_with_range(0.0, 1024.0, 1.0); - gtk_table_attach_defaults(GTK_TABLE(table), spin, 2, 3, 1, 2); - - /* Down */ - spin = gtk_spin_button_new_with_range(0.0, 1024.0, 1.0); - gtk_table_attach_defaults(GTK_TABLE(table), spin, 1, 2, 2, 3); + gtk_table_attach_defaults(GTK_TABLE(table), spin, 1, 2, 1, 2); table = gtk_table_new(3, 2, TRUE); gtk_table_set_row_spacings(GTK_TABLE(table), 5.0); |