[gnome-maps] No need to pass window to SearchPopup



commit a59fac843669dc4e33eee147b3dbf4b14dc74632
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Aug 20 14:31:32 2013 +0200

    No need to pass window to SearchPopup
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706389

 src/mainWindow.js  |    2 +-
 src/searchPopup.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 1cd92f9..7c51f67 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -81,7 +81,7 @@ const MainWindow = new Lang.Class({
     },
 
     _initSearchWidgets: function() {
-        this._searchPopup = new SearchPopup.SearchPopup(this.window);
+        this._searchPopup = new SearchPopup.SearchPopup();
 
         let model = new Gtk.ListStore();
         model.set_column_types([GObject.TYPE_STRING,
diff --git a/src/searchPopup.js b/src/searchPopup.js
index d8731fb..86eb196 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -31,7 +31,7 @@ const SearchPopup = new Lang.Class({
     Name: 'SearchPopup',
     Extends: Gtk.Bin,
 
-    _init: function (window) {
+    _init: function() {
         this.parent({ width_request: 500,
                       halign: Gtk.Align.CENTER,
                       valign: Gtk.Align.START,


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