#include <gtkmm/main.h>
#include <gtkmm/window.h>
+#include <imglib2/ImageErrors.h>
#include <nsGUIEvent.h>
#include <nsIBoxObject.h>
#include <nsIContent.h>
try
{
- check(status);
+ // Check whether the load was successful, ignoring this
+ // pseudo-error.
+ if (status != NS_IMAGELIB_ERROR_LOAD_ABORTED)
+ check(status);
nsCOMPtr<nsIWebBrowser> browser(
browser_widget_.get_browser());
void WebDvdWindow::save_screenshot()
{
- char filename[20];
+ char filename[25];
std::sprintf(filename, "page_%06d_back.png", page_links_.size());
Glib::RefPtr<Gdk::Window> window(get_window());
assert(window);