webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 03:13:22 +0000 (11:13 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 03:13:22 +0000 (11:13 +0800)
webkitpdf.vala

index eee1ed1..f62beac 100644 (file)
@@ -26,10 +26,10 @@ public class webkitpdf {
                        opt_context.add_main_entries (options, null);
                        opt_context.parse (ref args);
                        
-            if (Browser.opt_url == null) {
+            if (webkitpdf.opt_url == null) {
                 throw new OptionError.BAD_VALUE("missing url");
             }
-                       if (Browser.opt_target_png == null) {
+                       if (webkitpdf.opt_target_png == null) {
                 throw new OptionError.BAD_VALUE("missing png");
             }
             
@@ -41,8 +41,8 @@ public class webkitpdf {
                }
  
  
-        var browser = new Browser();
-        browser.show_all();
+        var browser = new BrowserWindow();
+        browser.el.show_all();
  
         Gtk.main();