mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
Switch from libhandy to libadwaita
This commit is contained in:
parent
88c7256c51
commit
6378556546
52 changed files with 198 additions and 198 deletions
|
|
@ -5,7 +5,7 @@ use std::rc::Rc;
|
|||
|
||||
/// A window hosting a navigator.
|
||||
pub struct NavigatorWindow {
|
||||
window: libhandy::Window,
|
||||
window: libadwaita::Window,
|
||||
navigator: Rc<Navigator>,
|
||||
}
|
||||
|
||||
|
|
@ -14,11 +14,11 @@ impl NavigatorWindow {
|
|||
pub fn new<S: NavigatorScreen + 'static>(initial_screen: Rc<S>) -> Rc<Self> {
|
||||
// Create UI
|
||||
|
||||
let window = libhandy::Window::new();
|
||||
let window = libadwaita::Window::new();
|
||||
window.set_default_size(600, 424);
|
||||
let placeholder = gtk::Label::new(None);
|
||||
let navigator = Navigator::new(&window, &placeholder);
|
||||
libhandy::WindowExt::set_child(&window, Some(&navigator.widget));
|
||||
libadwaita::WindowExt::set_child(&window, Some(&navigator.widget));
|
||||
|
||||
let this = Rc::new(Self { window, navigator });
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use crate::database::*;
|
|||
use glib::clone;
|
||||
use gtk::prelude::*;
|
||||
use gtk_macros::get_widget;
|
||||
use libhandy::prelude::*;
|
||||
use libadwaita::prelude::*;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ impl PoeList {
|
|||
this.list.set_make_widget_cb(clone!(@strong this => move |index| {
|
||||
let poe = &this.data.borrow()[index];
|
||||
|
||||
let row = libhandy::ActionRow::new();
|
||||
let row = libadwaita::ActionRow::new();
|
||||
row.set_activatable(true);
|
||||
row.set_title(Some(&poe.get_title()));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue