2 GObject = imports.gi.GObject;
6 //Toolbar : imports.Toolbar.Browser.Toolbar,
7 View : imports.View.Browser.View,
8 //Statusbar : imports.Statusbar.Browser.Statusbar
13 Browser.Tab = new GType({
14 parent: Gtk.VBox.type,
16 properties: [{name: "web_view",
17 type: GObject.TYPE_OBJECT,
19 blurb: "The tab's represented BrowserView",
20 object_type: Browser.View,
21 flags: (GObject.ParamFlags.CONSTRUCT | GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE)}],
25 //var toolbar = new Browser.Toolbar();
26 var scroll_view = new Gtk.ScrolledWindow();
27 //var statusbar = new Browser.Statusbar();
31 this.get_toolbar = function ()
36 this.get_web_view = function ()
41 this.set_tab_label = function (new_tab_label)
43 tab_label = new_tab_label;
46 this.get_tab_label = function ()
51 this.get_statusbar = function ()
57 if(this.web_view == null)
58 this.web_view = new Browser.View();
60 //this.web_view.set_tab(this);
62 scroll_view.smooth_scroll = true;
63 scroll_view.add(this.web_view);
64 scroll_view.set_policy(Gtk.PolicyType.AUTOMATIC,
65 Gtk.PolicyType.AUTOMATIC);
67 //this.pack_start(toolbar);
68 this.pack_start(scroll_view, true, true);
69 //this.pack_start(statusbar);