[polari/wip/raresv/nick-popover: 141/149] userDetails: Rename UserListDetails to UserDetails



commit 6c357156fcea43c72b175d9ad7d1b787d52ce60c
Author: raresv <rares visalom gmail com>
Date:   Sat Aug 20 20:03:43 2016 +0300

    userDetails: Rename UserListDetails to UserDetails
    
    In order to reuse the old UserListDetails class into both the
    UserList and the upcoming UserPopover, we need to first give it
    a new name that does not restrict the class to the UserList.
    Future patches will also refactor the new UserDetails class.

 data/org.gnome.Polari.data.gresource.xml           |    2 +-
 .../{user-list-details.ui => user-details.ui}      |    2 +-
 po/POTFILES.in                                     |    2 +-
 src/userList.js                                    |    8 ++++----
 4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/org.gnome.Polari.data.gresource.xml b/data/org.gnome.Polari.data.gresource.xml
index 542288e..65ee61b 100644
--- a/data/org.gnome.Polari.data.gresource.xml
+++ b/data/org.gnome.Polari.data.gresource.xml
@@ -12,6 +12,6 @@
     <file alias="ui/main-window.ui" preprocess="xml-stripblanks">resources/main-window.ui</file>
     <file alias="ui/room-list-header.ui" preprocess="xml-stripblanks">resources/room-list-header.ui</file>
     <file alias="ui/room-list-row.ui" preprocess="xml-stripblanks">resources/room-list-row.ui</file>
-    <file alias="ui/user-list-details.ui" preprocess="xml-stripblanks">resources/user-list-details.ui</file>
+    <file alias="ui/user-details.ui" preprocess="xml-stripblanks">resources/user-details.ui</file>
   </gresource>
 </gresources>
diff --git a/data/resources/user-list-details.ui b/data/resources/user-details.ui
similarity index 99%
rename from data/resources/user-list-details.ui
rename to data/resources/user-details.ui
index 524214e..a9349ec 100644
--- a/data/resources/user-list-details.ui
+++ b/data/resources/user-details.ui
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <template class="Gjs_UserListDetails" parent="GtkFrame">
+  <template class="Gjs_UserDetails" parent="GtkFrame">
     <property name="visible">True</property>
     <property name="hexpand">True</property>
     <property name="shadow-type">none</property>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8531aa0..859d16e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -9,7 +9,7 @@ data/resources/join-room-dialog.ui
 data/resources/main-window.ui
 data/resources/menus.ui
 data/resources/room-list-header.ui
-data/resources/user-list-details.ui
+data/resources/user-details.ui
 src/application.js
 src/appNotifications.js
 src/chatView.js
diff --git a/src/userList.js b/src/userList.js
index 16a2268..d1deac4 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -102,10 +102,10 @@ const UserListPopover = new Lang.Class({
     }
 });
 
-const UserListDetails = new Lang.Class({
-    Name: 'UserListDetails',
+const UserDetails = new Lang.Class({
+    Name: 'UserDetails',
     Extends: Gtk.Frame,
-    Template: 'resource:///org/gnome/Polari/ui/user-list-details.ui',
+    Template: 'resource:///org/gnome/Polari/ui/user-details.ui',
     InternalChildren: ['spinnerBox',
                        'spinner',
                        'detailsGrid',
@@ -317,7 +317,7 @@ const UserListRow = new Lang.Class({
         if (this._revealer.get_child())
             return;
 
-        let details = new UserListDetails({ user: this._user })
+        let details = new UserDetails({ user: this._user });
         this._revealer.bind_property('reveal-child', details, 'expanded', 0);
 
         this._revealer.add(details);


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