if (flags & GTK_MOZ_EMBED_FLAG_IS_WINDOW) {
if (flags & GTK_MOZ_EMBED_FLAG_IS_DOCUMENT) {
net_state_change_cb (GtkMozEmbed *embed, gint flags, guint status, TestGtkBrowser *browser){  //  g_print("net_state_change_cb %d\n", flags);  if (flags & GTK_MOZ_EMBED_FLAG_IS_REQUEST) {    if (flags & GTK_MOZ_EMBED_FLAG_REDIRECTING)    browser->statusMessage = "Redirecting to site...";    else if (flags & GTK_MOZ_EMBED_FLAG_TRANSFERRING)    browser->statusMessage = "Transferring data from site...";    else if (flags & GTK_MOZ_EMBED_FLAG_NEGOTIATING)    browser->statusMessage = "Waiting for authorization...";  }  if (status == GTK_MOZ_EMBED_STATUS_FAILED_DNS)    browser->statusMessage = "Site not found.";  else if (status == GTK_MOZ_EMBED_STATUS_FAILED_CONNECT)    browser->statusMessage = "Failed to connect to site.";  else if (status == GTK_MOZ_EMBED_STATUS_FAILED_TIMEOUT)    browser->statusMessage = "Failed due to connection timeout.";  else if (status == GTK_MOZ_EMBED_STATUS_FAILED_USERCANCELED)    browser->statusMessage = "User canceled connecting to site.";  if (flags & GTK_MOZ_EMBED_FLAG_IS_WINDOW) {    if (flags & GTK_MOZ_EMBED_FLAG_START)      browser->statusMessage = "Loading site...";    else if (flags & GTK_MOZ_EMBED_FLAG_STOP)      browser->statusMessage = "Done.";  }  update_status_bar_text(browser);  }