WHAT'S NEW?
+ v0.27
+ Fixed bug that showed up on Solaris/x86.
+ Gimp mainloop now runs as it's supposed to.
+
v0.26
Added "-n" flag for numeric output.
fixed IP numbers displaying backwards.
extern float WaitTime;
extern float DeltaTime;
+static int tag;
+
void gtk_do_init(int *argc, char ***argv) {
static int done = 0;
gint gtk_ping(gpointer data) {
gtk_redraw();
net_send_batch();
+ gtk_timeout_remove (tag);
+ tag = gtk_timeout_add(DeltaTime*1000, gtk_ping, NULL);
return TRUE;
}
void gtk_loop() {
DeltaTime = WaitTime/10;
- gtk_timeout_add(DeltaTime*1000, gtk_ping, NULL);
+ tag = gtk_timeout_add(DeltaTime*1000, gtk_ping, NULL);
gdk_input_add(net_waitfd(), GDK_INPUT_READ, gtk_net_data, NULL);
gdk_input_add(dns_waitfd(), GDK_INPUT_READ, gtk_dns_data, NULL);