[polari] actions: Rename 'join-room' to 'show-join-dialog'



commit 110713ca96b1bdde897bd8715ed5e56fdaa0c16f
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Aug 1 10:55:19 2013 +0200

    actions: Rename 'join-room' to 'show-join-dialog'
    
    It's what the action actually does, and we'll soon add a "real"
    join action ...

 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 dfd9057..b9ffc3e 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -5,7 +5,7 @@
     <section>
       <item>
         <attribute name="label" translatable="yes">Join a Room</attribute>
-        <attribute name="action">app.join-room</attribute>
+        <attribute name="action">app.show-join-dialog</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">Message a User</attribute>
diff --git a/src/application.js b/src/application.js
index d78788e..024c1b1 100644
--- a/src/application.js
+++ b/src/application.js
@@ -61,8 +61,8 @@ const Application = new Lang.Class({
             activate: Lang.bind(this, this._onToggleAction),
             create_hook: Lang.bind(this, this._accountActionsCreateHook),
             state: GLib.Variant.new('b', false) },
-          { name: 'join-room',
-            activate: Lang.bind(this, this._onJoinRoom),
+          { name: 'show-join-dialog',
+            activate: Lang.bind(this, this._onShowJoinDialog),
             create_hook: Lang.bind(this, this._accountActionsCreateHook),
             accel: '<Primary>n' },
           { name: 'message-user',
@@ -177,7 +177,7 @@ const Application = new Lang.Class({
         this._updateUserListAction(action);
     },
 
-    _onJoinRoom: function() {
+    _onShowJoinDialog: function() {
         this._window.showJoinRoomDialog();
     },
 


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