Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Resolved warnings
Browse files Browse the repository at this point in the history
- Resolved GTK and Adwaita warnings.
  • Loading branch information
edfloreshz committed Feb 12, 2024
1 parent 4d4ea94 commit c317742
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
2 changes: 2 additions & 0 deletions src/app/components/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ impl AsyncComponent for ContentModel {
#[name(split_view)]
adw::NavigationView {
add = &adw::NavigationPage {
set_title: "Smart",
set_tag: Some("smart"),
#[wrap(Some)]
set_child = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,
Expand Down
2 changes: 1 addition & 1 deletion src/app/factories/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ impl AsyncFactoryComponent for ServiceFactoryModel {
set_text: &self.service.to_string(),
}
},
set_action_name: Some("navigation.push"),
set_action_target: Some("lists-page"),
set_action_name: Some("navigation.push"),
connect_clicked[sender, index] => move |_| {
sender.input(ServiceFactoryInput::Selected(index.clone()));
}
Expand Down
23 changes: 0 additions & 23 deletions src/app/factories/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,29 +507,6 @@ impl AsyncFactoryComponent for TaskModel {
set_margin_all: 10,
}
}
// #[name(details)]
// add_suffix = &gtk::Button {
// add_css_class: "suggested-action",
// add_css_class: "circular",
// set_icon_name: icon_name::INFO,
// set_valign: gtk::Align::Center,
// set_tooltip: fl!("edit-task-details"),
// set_action_name: Some("navigation.push"),
// set_action_target: Some("task-details-page"),
// connect_clicked => TaskInput::RevealTaskDetails
// },
// add_row = &adw::EntryRow {
// set_show_apply_button: true,
// set_enable_emoji_completion: true,
// connect_activate[sender] => move |entry| {
// let buffer = entry.text().to_string();
// sender.input(TaskInput::ModifyTitle(buffer));
// },
// connect_apply[sender] => move |entry| {
// let buffer = entry.text().to_string();
// sender.input(TaskInput::ModifyTitle(buffer));
// },
// }
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/factories/task_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ impl AsyncFactoryComponent for TaskListFactoryModel {
#[watch]
set_tooltip: self.list.name().as_str(),
connect_activate => TaskListFactoryInput::Select,
set_action_name: Some("navigation.push"),
set_action_target: Some("content-page"),
set_action_name: Some("navigation.push"),
#[name(container)]
gtk::Box {
add_controller = gtk::GestureClick {
Expand Down

0 comments on commit c317742

Please sign in to comment.