diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-04 11:49:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-04 11:49:49 -0700 |
commit | 230a13476d9af732cb60b2c0393feeadb5b39e67 (patch) | |
tree | 7858e505d87025beecc97379ad08376347f195c8 /info.c | |
parent | 550eb862fa6dbc1d07c6a3165634900421dd2ca6 (diff) | |
parent | 31123f63af0a2b6a9756b8496f56359d1c68a645 (diff) | |
download | subsurface-230a13476d9af732cb60b2c0393feeadb5b39e67.tar.gz |
Merge branch 'ui-improvements' of https://github.com/nathansamson/diveclog
* 'ui-improvements' of https://github.com/nathansamson/diveclog:
Split the dive list in columns. Columns are sortable now (name = date, depth, duration)
Remove the redundant frames in the notebook. Closes #9
Use a pane so the dive list can be made wider or smaller to the users wishes
Diffstat (limited to 'info.c')
-rw-r--r-- | info.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -181,21 +181,16 @@ static GtkTextBuffer *text_view(GtkWidget *box, const char *label, gboolean expa return buffer; } -GtkWidget *extended_dive_info_frame(void) +GtkWidget *extended_dive_info_widget(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); location = text_entry(vbox, "Location"); notes = text_view(vbox, "Notes", TRUE); /* Add extended info here: name, description, yadda yadda */ update_dive_info(current_dive); - return frame; + return vbox; } |