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 @@ -