mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Switch all windows to libhandy
This commit is contained in:
parent
b54fc5d200
commit
f580c4e243
28 changed files with 1665 additions and 1447 deletions
|
|
@ -7,14 +7,14 @@ use libhandy::prelude::*;
|
|||
use std::rc::Rc;
|
||||
|
||||
pub struct Preferences {
|
||||
window: gtk::Window,
|
||||
window: libhandy::Window,
|
||||
}
|
||||
|
||||
impl Preferences {
|
||||
pub fn new<P: IsA<gtk::Window>>(backend: Rc<Backend>, parent: &P) -> Self {
|
||||
let builder = gtk::Builder::from_resource("/de/johrpan/musicus/ui/preferences.ui");
|
||||
|
||||
get_widget!(builder, gtk::Window, window);
|
||||
get_widget!(builder, libhandy::Window, window);
|
||||
get_widget!(builder, libhandy::ActionRow, music_library_path_row);
|
||||
get_widget!(builder, gtk::Button, select_music_library_path_button);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue