mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add fake 'info' frame contents
It should have depth, time, place etc information, but right now it only has a fake depth that doesn't even get updated. Just to show the idea of the table usage. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7017d17562
commit
a11dbbdb18
4 changed files with 36 additions and 2 deletions
27
info.c
Normal file
27
info.c
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "dive.h"
|
||||
#include "display.h"
|
||||
|
||||
GtkWidget *dive_info_frame(void)
|
||||
{
|
||||
GtkWidget *frame;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *depth;
|
||||
|
||||
frame = gtk_frame_new("Dive info");
|
||||
gtk_widget_show(frame);
|
||||
|
||||
hbox = gtk_hbox_new(FALSE, 5);
|
||||
gtk_container_add(GTK_CONTAINER(frame), hbox);
|
||||
|
||||
depth = gtk_entry_new();
|
||||
gtk_entry_set_text(GTK_ENTRY(depth), "54 ft");
|
||||
gtk_editable_set_editable(GTK_EDITABLE(depth), FALSE);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(hbox), depth, FALSE, FALSE, 0);
|
||||
|
||||
return frame;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue