Inbox page: Show replies instead of mentions by default
This commit is contained in:
parent
c1b5230aa5
commit
a01f86e1a1
|
@ -8,8 +8,8 @@ use super::mention_row::MentionRow;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum InboxType {
|
pub enum InboxType {
|
||||||
Mentions,
|
|
||||||
Replies,
|
Replies,
|
||||||
|
Mentions,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct InboxPage {
|
pub struct InboxPage {
|
||||||
|
@ -41,14 +41,14 @@ impl SimpleComponent for InboxPage {
|
||||||
set_orientation: gtk::Orientation::Horizontal,
|
set_orientation: gtk::Orientation::Horizontal,
|
||||||
set_margin_all: 15,
|
set_margin_all: 15,
|
||||||
set_spacing: 10,
|
set_spacing: 10,
|
||||||
gtk::Button {
|
|
||||||
set_label: "Mentions",
|
|
||||||
connect_clicked => InboxInput::UpdateType(InboxType::Mentions),
|
|
||||||
},
|
|
||||||
gtk::Button {
|
gtk::Button {
|
||||||
set_label: "Replies",
|
set_label: "Replies",
|
||||||
connect_clicked => InboxInput::UpdateType(InboxType::Replies),
|
connect_clicked => InboxInput::UpdateType(InboxType::Replies),
|
||||||
},
|
},
|
||||||
|
gtk::Button {
|
||||||
|
set_label: "Mentions",
|
||||||
|
connect_clicked => InboxInput::UpdateType(InboxType::Mentions),
|
||||||
|
},
|
||||||
gtk::ToggleButton {
|
gtk::ToggleButton {
|
||||||
set_active: false,
|
set_active: false,
|
||||||
set_label: "Show unread only",
|
set_label: "Show unread only",
|
||||||
|
@ -79,7 +79,7 @@ impl SimpleComponent for InboxPage {
|
||||||
mentions,
|
mentions,
|
||||||
page: 1,
|
page: 1,
|
||||||
unread_only: false,
|
unread_only: false,
|
||||||
type_: InboxType::Mentions,
|
type_: InboxType::Replies,
|
||||||
};
|
};
|
||||||
let mentions = model.mentions.widget();
|
let mentions = model.mentions.widget();
|
||||||
let widgets = view_output!();
|
let widgets = view_output!();
|
||||||
|
|
Loading…
Reference in New Issue