Project

General

Profile

Revision 1006

Threading issues worked out better... Ready to add motion.

View differences:

gtk_gui.c
5 5
#include "gtk_gui.h"
6 6
#include "gtk_environment_view.h"
7 7

  
8
GtkWidget* window;
9
GtkWidget* view;
10

  
8 11
void destroy_callback(int arg)
9 12
{
10 13
	gtk_main_quit();
......
12 15

  
13 16
int gtk_gui_run(int argc, char** argv)
14 17
{
15
	GtkWidget* window;
16
	GtkWidget* view;
17
	
18
	g_thread_init(NULL);
18
	//g_thread_init(NULL);
19 19
	gdk_threads_init();
20 20
	gdk_threads_enter();
21 21
	gtk_init(&argc, &argv);
......
43 43
	return 0;
44 44
}
45 45

  
46
void gui_refresh()
47
{
48
	gtk_environment_view_refresh(view);
49
}
50

  

Also available in: Unified diff