gtk_init(argc, argv);
ctk_gtksim_init(int *argc, char **argv[]){  GtkWidget *window;#if 0  GtkWidget *vbox;#endif    gtk_init(argc, argv);    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);  gtk_window_set_title(window, "Contiki GTKsim");#if 0  vbox = gtk_vbox_new(FALSE, 0);  gtk_container_add(GTK_CONTAINER (window), vbox);  gtk_widget_show(vbox);#endif  gtk_signal_connect(GTK_OBJECT (window), "destroy",		     GTK_SIGNAL_FUNC (quit), NULL);    /* Create the drawing area */  ctk_gtksim_drawing_area = gtk_drawing_area_new();  gtk_drawing_area_size(GTK_DRAWING_AREA (ctk_gtksim_drawing_area),			CTK_GTKSIM_SCREEN_WIDTH,			CTK_GTKSIM_SCREEN_HEIGHT);#if 0  gtk_box_pack_start(GTK_BOX(vbox), ctk_gtksim_drawing_area, TRUE, TRUE, 0);#else  gtk_container_add(GTK_CONTAINER(window), ctk_gtksim_drawing_area);#endif  gtk_widget_show(ctk_gtksim_drawing_area);  /* Load a fixed width font. */  /*  font = gdk_font_load("-*-gamow-medium-r-*-*-*-90-*-*-*-*-*-*");*/  /*  font = gdk_font_load("-*-courier-*-r-normal-*-14-*-*-*-m-*-iso8859-1");*/  font = gdk_font_load("-*-courier-medium-r-*-*-12-*-*-*-*-*-iso8859-1");  if(font != NULL) {    printf("Font loaded OK\n");  } else {    printf("Font loading failed\n");    exit(1);  }    /* Signals used to handle backing pixmap */  gtk_signal_connect(GTK_OBJECT (ctk_gtksim_drawing_area), "expose_event",		     (GtkSignalFunc) expose_event, NULL);  gtk_signal_connect(GTK_OBJECT (ctk_gtksim_drawing_area), "configure_event",		     (GtkSignalFunc) configure_event, NULL);  /* Event signals */  gtk_signal_connect(GTK_OBJECT (window), "key_press_event",		     (GtkSignalFunc) key_press_event, NULL);  gtk_signal_connect(GTK_OBJECT (window), "key_release_event",		     (GtkSignalFunc) key_release_event, NULL);  gtk_signal_connect(GTK_OBJECT (ctk_gtksim_drawing_area), "motion_notify_event",		     (GtkSignalFunc) motion_notify_event, NULL);  gtk_signal_connect(GTK_OBJECT (ctk_gtksim_drawing_area), "button_press_event",		     (GtkSignalFunc) button_press_event, NULL);  gtk_signal_connect(GTK_OBJECT (ctk_gtksim_drawing_area), "button_release_event",		     (GtkSignalFunc) button_release_event, NULL);  gtk_widget_set_events(ctk_gtksim_drawing_area, gtk_widget_get_events (ctk_gtksim_drawing_area) 			| GDK_KEY_PRESS_MASK			| GDK_KEY_RELEASE_MASK			| GDK_POINTER_MOTION_MASK			| GDK_POINTER_MOTION_HINT_MASK			| GDK_BUTTON_PRESS_MASK			| GDK_BUTTON_RELEASE_MASK);  gtk_widget_show(window);}