seed r752 - trunk/examples/browser



Author: hortont
Date: Thu Jan 15 01:06:22 2009
New Revision: 752
URL: http://svn.gnome.org/viewvc/seed?rev=752&view=rev

Log:
Working on Browser. Due to a bug in installed properties (construction properties don't show up in init), no more for now!


Modified:
   trunk/examples/browser/BrowserTab.js
   trunk/examples/browser/BrowserView.js
   trunk/examples/browser/TabbedBrowser.js
   trunk/examples/browser/main.js

Modified: trunk/examples/browser/BrowserTab.js
==============================================================================
--- trunk/examples/browser/BrowserTab.js	(original)
+++ trunk/examples/browser/BrowserTab.js	Thu Jan 15 01:06:22 2009
@@ -7,7 +7,7 @@
         klass.c_install_property(GObject.param_spec_object("web_view",
                                  "WebView",
                                  "WebView to display",
-                                 BrowserView.type,
+                                 GObject.TYPE_OBJECT,
                                  GObject.ParamFlags.READABLE |
                                      GObject.ParamFlags.WRITABLE));
     },
@@ -41,6 +41,9 @@
         };
         
         // Implementation
+        
+        Seed.print("Wv:"); Seed.print(this.web_view);
+        
         if(this.web_view == null)
         {
             Seed.print("creating new webview");

Modified: trunk/examples/browser/BrowserView.js
==============================================================================
--- trunk/examples/browser/BrowserView.js	(original)
+++ trunk/examples/browser/BrowserView.js	Thu Jan 15 01:06:22 2009
@@ -8,14 +8,10 @@
         
         var install_signals = function (web_view)
         {
-            Seed.print("connecting");
-            
             web_view.set_scroll_adjustments(null, null);
             web_view.signal.title_changed.connect(update_title);
             web_view.signal.load_committed.connect(update_url);
             web_view.signal.create_web_view.connect(create_new_tab);
-            
-            Seed.print("connected");
         }
         
         var update_title = function (web_view, web_frame, title)

Modified: trunk/examples/browser/TabbedBrowser.js
==============================================================================
--- trunk/examples/browser/TabbedBrowser.js	(original)
+++ trunk/examples/browser/TabbedBrowser.js	Thu Jan 15 01:06:22 2009
@@ -19,8 +19,10 @@
         {
             var new_tab;
             
-            if(new_web_view)
-                new_tab = new BrowserTab({"web_view":new_web_view});
+            Seed.print(new_web_view);
+            
+            if(new_web_view != null)
+                new_tab = new BrowserTab({web_view:new_web_view});
             else
                 new_tab = new BrowserTab();
             

Modified: trunk/examples/browser/main.js
==============================================================================
--- trunk/examples/browser/main.js	(original)
+++ trunk/examples/browser/main.js	Thu Jan 15 01:06:22 2009
@@ -6,9 +6,9 @@
 Gtk.init(null, null);
 
 Seed.include("BrowserSettings.js");
+Seed.include("BrowserView.js");
 Seed.include("BrowserTab.js");
 Seed.include("TabbedBrowser.js");
-Seed.include("BrowserView.js");
 Seed.include("BrowserToolbar.js");
 
 window = new Gtk.Window({title: "Browser"});



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]