[gjs] Fix examples



commit 570181febb948c9cffe7ade8f782dd4346379dc6
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Thu Mar 1 15:07:52 2012 +0100

    Fix examples
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671129

 examples/clutter.js |    2 +-
 examples/gettext.js |    6 +++---
 examples/gtk.js     |    2 +-
 examples/webkit.js  |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/examples/clutter.js b/examples/clutter.js
index a23f72c..a6b50ed 100644
--- a/examples/clutter.js
+++ b/examples/clutter.js
@@ -1,6 +1,6 @@
 const Clutter = imports.gi.Clutter;
 
-Clutter.init(0, null);
+Clutter.init(null);
 
 let stage = new Clutter.Stage();
 
diff --git a/examples/gettext.js b/examples/gettext.js
index 144fa34..dfb0207 100644
--- a/examples/gettext.js
+++ b/examples/gettext.js
@@ -2,10 +2,10 @@ const Gettext = imports.gettext;
 const Gtk = imports.gi.Gtk;
 const Mainloop = imports.mainloop;
 
-Gettext.bindtextdomain("gnome-panel-2.0", "/usr/share/locale");
-Gettext.textdomain("gnome-panel-2.0");
+Gettext.bindtextdomain("gnome-panel-3.0", "/usr/share/locale");
+Gettext.textdomain("gnome-panel-3.0");
 
-Gtk.init(0, null);
+Gtk.init(null);
 
 let w = new Gtk.Window({ type: Gtk.WindowType.TOPLEVEL });
 w.add(new Gtk.Label({ label: Gettext.gettext("Panel") }));
diff --git a/examples/gtk.js b/examples/gtk.js
index c38c2c2..638a147 100644
--- a/examples/gtk.js
+++ b/examples/gtk.js
@@ -24,7 +24,7 @@ function onDestroy(widget) {
     Gtk.main_quit();
 }
 
-Gtk.init(0, null);
+Gtk.init(null);
 
 // create a new window
 let win = new Gtk.Window({ type: Gtk.WindowType.TOPLEVEL });
diff --git a/examples/webkit.js b/examples/webkit.js
index cf370d9..064cef6 100644
--- a/examples/webkit.js
+++ b/examples/webkit.js
@@ -1,7 +1,7 @@
 const Gtk = imports.gi.Gtk;
 const WebKit = imports.gi.WebKit;
 
-Gtk.init(0, null);
+Gtk.init(null);
 
 let win = new Gtk.Window();
 



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