summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-12 09:24:47 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-12 09:24:47 -0800
commit393c437772fab75e1ebf88a85521b680fe3b927b (patch)
treebae90b2eb260f3591bcec11158f36a563d9d3057 /info.c
parentd3f1a30364878d0eb155a7d9ab7a58419e8690a3 (diff)
downloadsubsurface-393c437772fab75e1ebf88a85521b680fe3b927b.tar.gz
Pack the star rating on a line of its own
Packing it next to the divemaster/buddy information may work great on a big screen with lots of pixes, but it makes the minimum window size way wide for a small screen. So don't do it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/info.c b/info.c
index 377f33caa..38087c6e6 100644
--- a/info.c
+++ b/info.c
@@ -333,6 +333,10 @@ static void dive_info_widget(GtkWidget *box, struct dive *dive, struct dive_info
info->divemaster = text_entry(hbox, "Dive master", people_list, dive->divemaster);
info->buddy = text_entry(hbox, "Buddy", people_list, dive->buddy);
+
+ hbox = gtk_hbox_new(FALSE, 3);
+ gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, TRUE, 0);
+
info->rating = text_entry(hbox, "Rating", star_list, star_strings[dive->rating]);
info->notes = text_view(box, "Notes", READ_WRITE);
@@ -400,6 +404,10 @@ GtkWidget *extended_dive_info_widget(void)
divemaster = text_value(hbox, "Divemaster");
buddy = text_value(hbox, "Buddy");
+
+ hbox = gtk_hbox_new(FALSE, 3);
+ gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);
+
rating = text_value(hbox, "Rating");
notes = text_view(vbox, "Notes", READ_ONLY);