[polari/wip/raresv/nick-popover: 3/10] userDetails: Rename UserListDetails to UserDetails



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

    userDetails: Rename UserListDetails to UserDetails
    
    We will soon re-use the details class outside the UserList,
    so give it a more generic name so that its name doesn't
    exclusively tie it to the UserList.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760853

 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 191bd44..9aa0ded 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',
@@ -309,7 +309,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]