[polari] app: Rename 'leave-room' action to 'leave-current-room' for clarity
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] app: Rename 'leave-room' action to 'leave-current-room' for clarity
- Date: Thu, 8 Aug 2013 13:14:19 +0000 (UTC)
commit 214715d191e620407c73adf1670f65c0bdc8b17b
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 31 09:47:36 2013 +0200
app: Rename 'leave-room' action to 'leave-current-room' for clarity
We will adopt the selection-mode pattern to leave rooms, the existing
action will then only be used for the keyboard shortcut.
Rename for clarity.
data/resources/main-window.ui | 2 +-
src/application.js | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index b9ffc3e..9fbbe33 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -70,7 +70,7 @@
<property name="focus_on_click">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
- <property name="action_name">app.leave-room</property>
+ <property name="action_name">app.leave-current-room</property>
<style>
<class name="image-button"/>
</style>
diff --git a/src/application.js b/src/application.js
index 024c1b1..9218e66 100644
--- a/src/application.js
+++ b/src/application.js
@@ -67,8 +67,8 @@ const Application = new Lang.Class({
accel: '<Primary>n' },
{ name: 'message-user',
activate: Lang.bind(this, this._onMessageUser) },
- { name: 'leave-room',
- activate: Lang.bind(this, this._onLeaveRoom),
+ { name: 'leave-current-room',
+ activate: Lang.bind(this, this._onLeaveCurrentRoom),
create_hook: Lang.bind(this, this._leaveRoomCreateHook),
accel: '<Primary>w' },
{ name: 'user-list',
@@ -185,7 +185,7 @@ const Application = new Lang.Class({
log('Activated action "Message user"');
},
- _onLeaveRoom: function() {
+ _onLeaveCurrentRoom: function() {
let reason = Tp.ChannelGroupChangeReason.NONE;
let message = _("Good Bye"); // TODO - our first setting!
let room = this._chatroomManager.getActiveRoom();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]