diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-07-16 12:02:12 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-07-16 12:02:12 +0200 |
commit | 3672807f070981d6277302623f1d78af408f4ef3 (patch) | |
tree | 4dd1fca6a8fcbd86cdf27827aa143d79293681d7 /src | |
parent | 27747f19e4de3a44884a74c2569872b84211445b (diff) |
Add horizontal line
Diffstat (limited to 'src')
-rw-r--r-- | src/stylesheet.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index dba4a5b..b1cc6ed 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -45,12 +45,13 @@ static void do_text(struct _stylesheetwindow *s, GtkWidget *b) { GtkWidget *table; GtkWidget *box; + GtkWidget *line; GtkWidget *label; GtkWidget *combo; GtkWidget *font; GtkWidget *colour; - table = gtk_table_new(3, 2, FALSE); + table = gtk_table_new(4, 2, FALSE); gtk_box_pack_start(GTK_BOX(b), table, TRUE, TRUE, 5); gtk_table_set_row_spacings(GTK_TABLE(table), 5.0); gtk_table_set_col_spacings(GTK_TABLE(table), 5.0); @@ -62,25 +63,29 @@ static void do_text(struct _stylesheetwindow *s, GtkWidget *b) gtk_table_attach_defaults(GTK_TABLE(table), combo, 1, 2, 0, 1); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Running text"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Label"); - gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Title"); + gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Slide title"); gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); gtk_widget_set_size_request(GTK_WIDGET(combo), 300, -1); - gtk_table_set_row_spacing(GTK_TABLE(table), 0, 20); + + line = gtk_hseparator_new(); + gtk_table_attach_defaults(GTK_TABLE(table), line, 0, 4, 1, 2); + gtk_table_set_row_spacing(GTK_TABLE(table), 0, 10); + gtk_table_set_row_spacing(GTK_TABLE(table), 1, 10); label = gtk_label_new("Font:"); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); + gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); font = gtk_font_button_new_with_font("Sans 12"); box = gtk_hbox_new(FALSE, 0); - gtk_table_attach_defaults(GTK_TABLE(table), box, 1, 2, 1, 2); + gtk_table_attach_defaults(GTK_TABLE(table), box, 1, 2, 2, 3); gtk_box_pack_start(GTK_BOX(box), font, FALSE, FALSE, 0); label = gtk_label_new("Colour:"); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); - gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); + gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 3, 4); colour = gtk_color_button_new(); box = gtk_hbox_new(FALSE, 0); - gtk_table_attach_defaults(GTK_TABLE(table), box, 1, 2, 2, 3); + gtk_table_attach_defaults(GTK_TABLE(table), box, 1, 2, 3, 4); gtk_box_pack_start(GTK_BOX(box), colour, FALSE, FALSE, 0); } |