if (max == -1)
if (max < 1)
void progress_change_cb   (GtkMozEmbed *embed, gint cur, gint max,			   TestGtkBrowser *browser){  g_print("progress_change_cb cur %d max %d\n", cur, max);  if (max == -1)  {    gtk_progress_set_activity_mode(GTK_PROGRESS(browser->progressBar), FALSE);    browser->loadPercent = 0;    browser->bytesLoaded = cur;    browser->maxBytesLoaded = 0;    update_status_bar_text(browser);  }  else  {    browser->bytesLoaded = cur;    browser->maxBytesLoaded = max;    browser->loadPercent = (cur * 100) / max;    update_status_bar_text(browser);    gtk_progress_set_percentage(GTK_PROGRESS(browser->progressBar), browser->loadPercent / 100.0);  }  }