mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove dive info frame
It has always been problematic, and I've been moving things in and out of it. And it just isn't a very powerful widget. You can't *do* anything with it. The information it shows you may be useful, but the core stuff already shows up in the dive list. And the dive list is actually a much superior widget over that static dive info frame. The information that shows up in the dive list can be sorted by column, for example. So when we show temperatures or SAC numbers in the dive info frame, that's actually a very bad place to show them: we would be much better off showing it in the dive list, and then we could sort by SAC or by temperature. In other words: just remove the thing. Instead, plan to extend the dive list to contain all the information. That will probably mean that we need to change the current pane widget to be a vertical pane, rather than a horizontal one, but what's wrong with that? Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
96005d20ea
commit
fefcbf125e
2 changed files with 7 additions and 231 deletions
5
main.c
5
main.c
|
@ -422,7 +422,6 @@ int main(int argc, char **argv)
|
|||
GtkWidget *paned;
|
||||
GtkWidget *info_box;
|
||||
GtkWidget *notebook;
|
||||
GtkWidget *frame;
|
||||
GtkWidget *dive_info;
|
||||
GtkWidget *equipment;
|
||||
GtkWidget *menubar;
|
||||
|
@ -469,10 +468,6 @@ int main(int argc, char **argv)
|
|||
info_box = gtk_vbox_new(FALSE, 6);
|
||||
gtk_paned_add2(GTK_PANED(paned), info_box);
|
||||
|
||||
/* Frame for minimal dive info */
|
||||
frame = dive_info_frame();
|
||||
gtk_box_pack_start(GTK_BOX(info_box), frame, FALSE, TRUE, 6);
|
||||
|
||||
/* Notebook for dive info vs profile vs .. */
|
||||
notebook = gtk_notebook_new();
|
||||
g_signal_connect(notebook, "switch-page", G_CALLBACK(switch_page), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue