diff options
author | Hylke Bons <hylkebons@gmail.com> | 2011-09-04 17:08:40 +0200 |
---|---|---|
committer | Hylke Bons <hylkebons@gmail.com> | 2011-09-04 19:37:23 +0200 |
commit | c4514b062a9866153c179d4b6ecf7972c9496891 (patch) | |
tree | b63c1376e3d1249c2c876f6b0e805d5a079f1674 /info.c | |
parent | a6b9eaee0aa2ff67482560f4401e0dc6f2c79237 (diff) | |
download | subsurface-c4514b062a9866153c179d4b6ecf7972c9496891.tar.gz |
Some UI beauty patches:
Uppercase first letter for each label word
Tweak the paddings for easier reading
Rename File menu to Log menu
Add a separator before Quit in the Log menu
Remove frame in extended diving info and add 6px padding
Signed-off-by: Hylke Bons <hylkebons@gmail.com>
Diffstat (limited to 'info.c')
-rw-r--r-- | info.c | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -164,21 +164,16 @@ static GtkTextBuffer *text_entry(GtkWidget *box, const char *label, gboolean exp return buffer; } -GtkWidget *extended_dive_info_frame(void) +GtkWidget *extended_dive_info_box(void) { - GtkWidget *frame; GtkWidget *vbox; - - frame = gtk_frame_new("Extended dive info"); - gtk_widget_show(frame); - - vbox = gtk_vbox_new(FALSE, 5); - gtk_container_add(GTK_CONTAINER(frame), vbox); + vbox = gtk_vbox_new(FALSE, 6); location = text_entry(vbox, "Location", FALSE); + gtk_container_set_border_width(GTK_CONTAINER(vbox), 6); notes = text_entry(vbox, "Notes", TRUE); /* Add extended info here: name, description, yadda yadda */ update_dive_info(current_dive); - return frame; + return vbox; } |