misc: Do not show arrows on some popovers

This commit is contained in:
Kévin Commaille 2023-11-10 15:23:25 +01:00
parent 0c3879622e
commit ff776f02a6
No known key found for this signature in database
GPG Key ID: 29A48C1F03620416
3 changed files with 8 additions and 3 deletions

View File

@ -751,7 +751,7 @@ impl RoomHistory {
pub fn item_context_menu(&self) -> &gtk::PopoverMenu {
self.imp()
.item_context_menu
.get_or_init(|| gtk::PopoverMenu::from_model(gio::MenuModel::NONE))
.get_or_init(|| gtk::PopoverMenu::builder().has_arrow(false).build())
}
pub fn item_reaction_chooser(&self) -> &ReactionChooser {

View File

@ -6,6 +6,7 @@
</style>
<property name="autohide">true</property>
<property name="width-request">260</property>
<property name="has-arrow">false</property>
<property name="child">
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="propagate-natural-height">true</property>

View File

@ -350,8 +350,12 @@ impl Sidebar {
pub fn room_row_popover(&self) -> &gtk::PopoverMenu {
let imp = self.imp();
imp.room_row_popover
.get_or_init(|| gtk::PopoverMenu::from_model(Some(&*imp.room_row_menu)))
imp.room_row_popover.get_or_init(|| {
gtk::PopoverMenu::builder()
.menu_model(&*imp.room_row_menu)
.has_arrow(false)
.build()
})
}
/// Returns the parent `Window` containing the `Sidebar`