[seed] Examples: GObject subclass' init function no longer takes 'klass' argument



commit d87053c6267b6a61a7702a90fb0be15dc3542a49
Author: Tim Horton <hortont svn gnome org>
Date:   Tue May 12 03:27:15 2009 -0400

    Examples: GObject subclass' init function no longer takes 'klass' argument
---
 examples/browser/BrowserStatusbar.js |    2 +-
 examples/browser/BrowserTab.js       |    2 +-
 examples/browser/BrowserToolbar.js   |    2 +-
 examples/browser/BrowserView.js      |    2 +-
 examples/browser/TabbedBrowser.js    |    2 +-
 examples/n-oscillator.js             |    2 +-
 examples/pango.js                    |    8 ++++----
 examples/pong/pong.js                |    6 +++---
 examples/same-seed/board.js          |    2 +-
 examples/same-seed/light.js          |    2 +-
 examples/same-seed/score.js          |    2 +-
 11 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/examples/browser/BrowserStatusbar.js b/examples/browser/BrowserStatusbar.js
index a3085bc..b82d8f1 100644
--- a/examples/browser/BrowserStatusbar.js
+++ b/examples/browser/BrowserStatusbar.js
@@ -4,7 +4,7 @@ WebKit = imports.gi.WebKit;
 BrowserStatusbar = new GType({
     parent: Gtk.Statusbar.type,
     name: "BrowserStatusbar",
-    init: function (klass)
+    init: function ()
     {
         // Private
         var transient_status_group = this.get_context_id("transient");
diff --git a/examples/browser/BrowserTab.js b/examples/browser/BrowserTab.js
index 44e1185..3eb07de 100644
--- a/examples/browser/BrowserTab.js
+++ b/examples/browser/BrowserTab.js
@@ -19,7 +19,7 @@ BrowserTab = new GType({
                                  GObject.ParamFlags.READABLE |
                                      GObject.ParamFlags.WRITABLE));*/
     },
-    init: function (klass)
+    init: function ()
     {
         // Private
         var toolbar = new BrowserToolbar.BrowserToolbar();
diff --git a/examples/browser/BrowserToolbar.js b/examples/browser/BrowserToolbar.js
index b35f711..83febe8 100644
--- a/examples/browser/BrowserToolbar.js
+++ b/examples/browser/BrowserToolbar.js
@@ -5,7 +5,7 @@ BrowserSettings = imports.BrowserSettings;
 BrowserToolbar = new GType({
     parent: Gtk.HBox.type,
     name: "BrowserToolbar",
-    init: function (klass)
+    init: function ()
     {
         // Private
         var url_bar = new Gtk.Entry();
diff --git a/examples/browser/BrowserView.js b/examples/browser/BrowserView.js
index 30625f9..828cac1 100644
--- a/examples/browser/BrowserView.js
+++ b/examples/browser/BrowserView.js
@@ -6,7 +6,7 @@ TabbedBrowser = imports.TabbedBrowser;
 BrowserView = new GType({
     parent: WebKit.WebView.type,
     name: "BrowserView",
-    init: function (klass)
+    init: function ()
     {
         // Private
         var tab;
diff --git a/examples/browser/TabbedBrowser.js b/examples/browser/TabbedBrowser.js
index 16342ee..2a20d32 100644
--- a/examples/browser/TabbedBrowser.js
+++ b/examples/browser/TabbedBrowser.js
@@ -8,7 +8,7 @@ BrowserTab = imports.BrowserTab;
 TabbedBrowser = new GType({
     parent: Gtk.Notebook.type,
     name: "TabbedBrowser",
-    init: function (klass)
+    init: function ()
     {
         // Public
         this.close_tab = function (tab)
diff --git a/examples/n-oscillator.js b/examples/n-oscillator.js
index 0794626..7626802 100755
--- a/examples/n-oscillator.js
+++ b/examples/n-oscillator.js
@@ -26,7 +26,7 @@ OscillatorWidget = new GType({
 		
 		klass.c_install_property(ps);
 	},
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		
diff --git a/examples/pango.js b/examples/pango.js
index 51ebd9b..4ff75e5 100755
--- a/examples/pango.js
+++ b/examples/pango.js
@@ -15,7 +15,7 @@ GtkClutter.init(Seed.argv);
 PangoWidget = new GType({
 	parent: Clutter.Text.type,
 	name: "PangoWidget",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		
@@ -52,7 +52,7 @@ PangoWidget = new GType({
 ContainerWidget = new GType({
 	parent: GtkClutter.Embed.type,
 	name: "ContainerWidget",
-	init: function(klass)
+	init: function()
 	{
 		
 	}
@@ -61,7 +61,7 @@ ContainerWidget = new GType({
 /*FontSelector = new GType({
 	parent: Gtk.ComboBox.type,
 	name: "FontSelector",
-	init: function(klass)
+	init: function()
 	{
 		var font_list = [];
 		var context = new Pango.Context();
@@ -90,7 +90,7 @@ ContainerWidget = new GType({
 PropertyEditor = new GType({
 	parent: Gtk.HBox.type,
 	name: "PropertyEditor",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		var text = new Gtk.Entry();
diff --git a/examples/pong/pong.js b/examples/pong/pong.js
index 897db57..540c065 100755
--- a/examples/pong/pong.js
+++ b/examples/pong/pong.js
@@ -12,7 +12,7 @@ var winning_animation = 1;
 Paddle = new GType({
 	parent: Clutter.Group.type,
 	name: "Paddle",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		var velocity = 0;
@@ -110,7 +110,7 @@ Paddle = new GType({
 AIPaddle = new GType({
 	parent: Paddle.type,
 	name: "AIPaddle",
-	init: function(klass)
+	init: function()
 	{
 		// Public
 		this.update_velocity = function ()
@@ -135,7 +135,7 @@ AIPaddle = new GType({
 Ball = new GType({
 	parent: Clutter.Group.type,
 	name: "Ball",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		var v_x = -2;
diff --git a/examples/same-seed/board.js b/examples/same-seed/board.js
index f739102..cff611e 100644
--- a/examples/same-seed/board.js
+++ b/examples/same-seed/board.js
@@ -1,7 +1,7 @@
 Board = new GType({
 	parent: Clutter.Group.type,
 	name: "Board",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		var lights = [], all_lights = [];
diff --git a/examples/same-seed/light.js b/examples/same-seed/light.js
index dfc55d6..79201fd 100644
--- a/examples/same-seed/light.js
+++ b/examples/same-seed/light.js
@@ -13,7 +13,7 @@ var colors = [load_svg("blue.svg"), load_svg("green.svg"),
 Light = new GType({
 	parent: Clutter.Group.type,
 	name: "Light",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		var closed = false;
diff --git a/examples/same-seed/score.js b/examples/same-seed/score.js
index aeee53b..e7e30dc 100644
--- a/examples/same-seed/score.js
+++ b/examples/same-seed/score.js
@@ -1,7 +1,7 @@
 Score = new GType({
 	parent: Clutter.Group.type,
 	name: "Score",
-	init: function(klass)
+	init: function()
 	{
 		// Private
 		var label;



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