예제 #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);
}