summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-04 11:49:49 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-04 11:49:49 -0700
commit230a13476d9af732cb60b2c0393feeadb5b39e67 (patch)
tree7858e505d87025beecc97379ad08376347f195c8 /profile.c
parent550eb862fa6dbc1d07c6a3165634900421dd2ca6 (diff)
parent31123f63af0a2b6a9756b8496f56359d1c68a645 (diff)
downloadsubsurface-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 'profile.c')
-rw-r--r--profile.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/profile.c b/profile.c
index 7a0a20828..070e6fa70 100644
--- a/profile.c
+++ b/profile.c
@@ -195,17 +195,13 @@ static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer
return FALSE;
}
-GtkWidget *dive_profile_frame(void)
+GtkWidget *dive_profile_widget(void)
{
- GtkWidget *frame;
GtkWidget *da;
- frame = gtk_frame_new("Dive profile");
- gtk_widget_show(frame);
da = gtk_drawing_area_new();
gtk_widget_set_size_request(da, 450, 350);
g_signal_connect(da, "expose_event", G_CALLBACK(expose_event), NULL);
- gtk_container_add(GTK_CONTAINER(frame), da);
- return frame;
+ return da;
}