示例#1
0
文件: info.c 项目: careychow/diveclog
GtkWidget *extended_dive_info_widget(void)
{
	GtkWidget *vbox;

	vbox = gtk_vbox_new(FALSE, 6);

	location = text_entry(vbox, "Location");
	gtk_container_set_border_width(GTK_CONTAINER(vbox), 6);
	notes = text_view(vbox, "Notes", TRUE);

	/* Add extended info here: name, description, yadda yadda */
	update_dive_info(current_dive);
	return vbox;
}
示例#2
0
GtkWidget *extended_dive_info_frame(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", FALSE);
	notes = text_entry(vbox, "Notes", TRUE);

	/* Add extended info here: name, description, yadda yadda */
	update_dive_info(current_dive);
	return frame;
}
示例#3
0
void repaint_dive(void)
{
	update_dive_info(current_dive);
	gtk_widget_queue_draw(dive_profile);
}