From 96b870bd3feea87590a51465729cdec44239994b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 15 Nov 2023 11:07:27 +0100 Subject: [PATCH] room-details: Rename MemberPage to MembersPage --- po/POTFILES.in | 12 +++++------ .../member_menu.rs | 2 +- .../member_menu.ui | 0 .../members_list_view/extra_lists.rs | 0 .../members_list_view/item_row.rs | 0 .../members_list_view/member_row.rs | 8 ++++---- .../members_list_view/member_row.ui | 0 .../membership_subpage_item.rs | 2 +- .../membership_subpage_row.rs | 4 ++-- .../membership_subpage_row.ui | 4 ++-- .../members_list_view/mod.rs | 2 +- .../members_list_view/mod.ui | 0 .../{member_page => members_page}/mod.rs | 20 +++++++++---------- .../{member_page => members_page}/mod.ui | 2 +- src/session/view/content/room_details/mod.rs | 6 +++--- src/ui-resources.gresource.xml | 10 +++++----- 16 files changed, 36 insertions(+), 36 deletions(-) rename src/session/view/content/room_details/{member_page => members_page}/member_menu.rs (98%) rename src/session/view/content/room_details/{member_page => members_page}/member_menu.ui (100%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/extra_lists.rs (100%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/item_row.rs (100%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/member_row.rs (94%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/member_row.ui (100%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/membership_subpage_item.rs (97%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/membership_subpage_row.rs (97%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/membership_subpage_row.ui (79%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/mod.rs (98%) rename src/session/view/content/room_details/{member_page => members_page}/members_list_view/mod.ui (100%) rename src/session/view/content/room_details/{member_page => members_page}/mod.rs (96%) rename src/session/view/content/room_details/{member_page => members_page}/mod.ui (98%) diff --git a/po/POTFILES.in b/po/POTFILES.in index d7e3bf4e..bef85720 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -70,12 +70,12 @@ src/session/view/content/room_details/history_viewer/media.ui src/session/view/content/room_details/invite_subpage/invitee_list.rs src/session/view/content/room_details/invite_subpage/mod.rs src/session/view/content/room_details/invite_subpage/mod.ui -src/session/view/content/room_details/member_page/members_list_view/extra_lists.rs -src/session/view/content/room_details/member_page/members_list_view/member_row.ui -src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.rs -src/session/view/content/room_details/member_page/member_menu.ui -src/session/view/content/room_details/member_page/mod.rs -src/session/view/content/room_details/member_page/mod.ui +src/session/view/content/room_details/members_page/members_list_view/extra_lists.rs +src/session/view/content/room_details/members_page/members_list_view/member_row.ui +src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.rs +src/session/view/content/room_details/members_page/member_menu.ui +src/session/view/content/room_details/members_page/mod.rs +src/session/view/content/room_details/members_page/mod.ui src/session/view/content/room_details/mod.ui src/session/view/content/room_history/event_actions.ui src/session/view/content/room_history/item_row.rs diff --git a/src/session/view/content/room_details/member_page/member_menu.rs b/src/session/view/content/room_details/members_page/member_menu.rs similarity index 98% rename from src/session/view/content/room_details/member_page/member_menu.rs rename to src/session/view/content/room_details/members_page/member_menu.rs index 135052f6..02486bfe 100644 --- a/src/session/view/content/room_details/member_page/member_menu.rs +++ b/src/session/view/content/room_details/members_page/member_menu.rs @@ -126,7 +126,7 @@ impl MemberMenu { fn popover_menu(&self) -> >k::PopoverMenu { self.imp().popover.get_or_init(|| { gtk::PopoverMenu::from_model(Some( - >k::Builder::from_resource("/org/gnome/Fractal/ui/session/view/content/room_details/member_page/member_menu.ui") + >k::Builder::from_resource("/org/gnome/Fractal/ui/session/view/content/room_details/members_page/member_menu.ui") .object::("menu_model") .unwrap(), )) diff --git a/src/session/view/content/room_details/member_page/member_menu.ui b/src/session/view/content/room_details/members_page/member_menu.ui similarity index 100% rename from src/session/view/content/room_details/member_page/member_menu.ui rename to src/session/view/content/room_details/members_page/member_menu.ui diff --git a/src/session/view/content/room_details/member_page/members_list_view/extra_lists.rs b/src/session/view/content/room_details/members_page/members_list_view/extra_lists.rs similarity index 100% rename from src/session/view/content/room_details/member_page/members_list_view/extra_lists.rs rename to src/session/view/content/room_details/members_page/members_list_view/extra_lists.rs diff --git a/src/session/view/content/room_details/member_page/members_list_view/item_row.rs b/src/session/view/content/room_details/members_page/members_list_view/item_row.rs similarity index 100% rename from src/session/view/content/room_details/member_page/members_list_view/item_row.rs rename to src/session/view/content/room_details/members_page/members_list_view/item_row.rs diff --git a/src/session/view/content/room_details/member_page/members_list_view/member_row.rs b/src/session/view/content/room_details/members_page/members_list_view/member_row.rs similarity index 94% rename from src/session/view/content/room_details/member_page/members_list_view/member_row.rs rename to src/session/view/content/room_details/members_page/members_list_view/member_row.rs index b1f6818d..dee583c9 100644 --- a/src/session/view/content/room_details/member_page/members_list_view/member_row.rs +++ b/src/session/view/content/room_details/members_page/members_list_view/member_row.rs @@ -1,7 +1,7 @@ use adw::subclass::prelude::BinImpl; use gtk::{glib, glib::clone, prelude::*, subclass::prelude::*, CompositeTemplate}; -use super::super::{MemberMenu, MemberPage}; +use super::super::{MemberMenu, MembersPage}; use crate::{ components::{Avatar, Badge}, session::model::Member, @@ -17,7 +17,7 @@ mod imp { #[derive(Debug, Default, CompositeTemplate)] #[template( - resource = "/org/gnome/Fractal/ui/session/view/content/room_details/member_page/members_list_view/member_row.ui" + resource = "/org/gnome/Fractal/ui/session/view/content/room_details/members_page/members_list_view/member_row.ui" )] pub struct MemberRow { pub member: RefCell>, @@ -123,8 +123,8 @@ impl MemberRow { fn member_menu(&self) -> Option { let member_page = self - .ancestor(MemberPage::static_type()) - .and_downcast::()?; + .ancestor(MembersPage::static_type()) + .and_downcast::()?; Some(member_page.member_menu().clone()) } } diff --git a/src/session/view/content/room_details/member_page/members_list_view/member_row.ui b/src/session/view/content/room_details/members_page/members_list_view/member_row.ui similarity index 100% rename from src/session/view/content/room_details/member_page/members_list_view/member_row.ui rename to src/session/view/content/room_details/members_page/members_list_view/member_row.ui diff --git a/src/session/view/content/room_details/member_page/members_list_view/membership_subpage_item.rs b/src/session/view/content/room_details/members_page/members_list_view/membership_subpage_item.rs similarity index 97% rename from src/session/view/content/room_details/member_page/members_list_view/membership_subpage_item.rs rename to src/session/view/content/room_details/members_page/members_list_view/membership_subpage_item.rs index 410703fd..b0af8240 100644 --- a/src/session/view/content/room_details/member_page/members_list_view/membership_subpage_item.rs +++ b/src/session/view/content/room_details/members_page/members_list_view/membership_subpage_item.rs @@ -20,7 +20,7 @@ mod imp { #[glib::object_subclass] impl ObjectSubclass for MembershipSubpageItem { - const NAME: &'static str = "ContentMemberPageMembershipSubpageItem"; + const NAME: &'static str = "MembersPageMembershipSubpageItem"; type Type = super::MembershipSubpageItem; } diff --git a/src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.rs b/src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.rs similarity index 97% rename from src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.rs rename to src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.rs index 64e88089..16eb7722 100644 --- a/src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.rs +++ b/src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.rs @@ -14,7 +14,7 @@ mod imp { #[derive(Debug, Default, CompositeTemplate)] #[template( - resource = "/org/gnome/Fractal/ui/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.ui" + resource = "/org/gnome/Fractal/ui/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.ui" )] pub struct MembershipSubpageRow { /// The item of this row. @@ -27,7 +27,7 @@ mod imp { #[glib::object_subclass] impl ObjectSubclass for MembershipSubpageRow { - const NAME: &'static str = "ContentMemberPageMembershipSubpageRow"; + const NAME: &'static str = "MembersPageMembershipSubpageRow"; type Type = super::MembershipSubpageRow; type ParentType = adw::ActionRow; diff --git a/src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.ui b/src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.ui similarity index 79% rename from src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.ui rename to src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.ui index d9fc5c0e..8834b4e3 100644 --- a/src/session/view/content/room_details/member_page/members_list_view/membership_subpage_row.ui +++ b/src/session/view/content/room_details/members_page/members_list_view/membership_subpage_row.ui @@ -1,7 +1,7 @@ -