[gnome-weather] Remove duplicate action definition
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Remove duplicate action definition
- Date: Wed, 5 Jun 2013 19:34:29 +0000 (UTC)
commit 6885e31f4df3821c2fc19e8788c63bf618256185
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Jun 2 17:07:42 2013 +0200
Remove duplicate action definition
win.new and win.new-location were the same action
data/app-menu.ui | 2 +-
src/window.js | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/app-menu.ui b/data/app-menu.ui
index c332595..cfa915a 100644
--- a/data/app-menu.ui
+++ b/data/app-menu.ui
@@ -3,7 +3,7 @@
<section>
<item>
<attribute name="label" translatable="yes">_New</attribute>
- <attribute name="action">win.new</attribute>
+ <attribute name="action">win.new-location</attribute>
<attribute name="accel"><Primary>n</attribute>
</item>
</section>
diff --git a/src/window.js b/src/window.js
index 64ee7b9..d5fd299 100644
--- a/src/window.js
+++ b/src/window.js
@@ -93,14 +93,12 @@ const MainWindow = new Lang.Class({
this._pageWidgets = [[],[]];
Util.initActions(this,
- [{ name: 'new',
+ [{ name: 'new-location',
activate: this._newLocation },
{ name: 'about',
activate: this._showAbout },
{ name: 'close',
activate: this._close },
- { name: 'new-location',
- activate: this._newLocation },
{ name: 'selection-mode',
activate: this._setSelectionMode,
parameter_type: new GLib.VariantType('b'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]