[gnome-shell] sessionMode: Rename _getModes()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] sessionMode: Rename _getModes()
- Date: Sat, 7 Dec 2013 09:10:55 +0000 (UTC)
commit c9f2a0f694e84dca1783060751d4521303ca52e4
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 6 21:28:23 2013 +0100
sessionMode: Rename _getModes()
Since commit da4238ec681c7ca, the function doesn't return anything,
so rename it to _loadModes() to reflect this.
https://bugzilla.gnome.org/show_bug.cgi?id=720017
js/ui/sessionMode.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 9670c23..2600cbb 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -128,14 +128,14 @@ function _loadMode(file, info) {
_modes[modeName]['isPrimary'] = true;
}
-function _getModes() {
+function _loadModes() {
FileUtils.collectFromDatadirs('modes', false, _loadMode);
}
function listModes() {
- let modes = _getModes();
+ _loadModes();
modes.forEach(function() {
- let names = Object.getOwnPropertyNames(modes);
+ let names = Object.getOwnPropertyNames(_modes);
for (let i = 0; i < names.length; i++)
if (_modes[names[i]].isPrimary)
print(names[i]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]