From 851d68083cda5b9b6eecb12d30052ab11a8afa45 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Sun, 26 Nov 2017 23:13:44 +0100 Subject: [PATCH] Fix incorrect if-clause. --- src/prefs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefs.js b/src/prefs.js index 3f20f39..b4b0f9f 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -421,7 +421,7 @@ const WeatherPrefsWidget = new GObject.Class({ showSearchMenu: function() { this.searchMenu.show_all(); - if (versionAtLeast('3.22', Config.PACKAGE_VERSION)) { + if (typeof this.searchMenu.popup_at_widget === "function") { this.searchMenu.popup_at_widget(this.searchName, Gdk.Gravity.SOUTH_WEST, Gdk.Gravity.NORTH_WEST, null); } else