Mercurial > tablet-emu
diff src/bin/standalone.rs @ 18:3f7b7a3ad8fe
Build three binaries instead of using arguments.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 26 Aug 2021 22:15:55 +0200 |
parents | src/gtk.rs@478cf2a7d577 |
children |
line wrap: on
line diff
copy from src/gtk.rs copy to src/bin/standalone.rs --- a/src/gtk.rs +++ b/src/bin/standalone.rs @@ -14,13 +14,13 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. -use crate::{state::State, DEFAULT_HEIGHT, DEFAULT_WIDTH}; use gio::prelude::*; use glib::clone; use gtk::prelude::*; use input_linux::Key; use std::io::ErrorKind; use std::sync::{Arc, Mutex}; +use tablet_emu::{state::State, DEFAULT_HEIGHT, DEFAULT_WIDTH}; fn build_main_menu(app: >k::Application) { let quit = gio::SimpleAction::new("quit", None); @@ -170,7 +170,7 @@ fn build_ui(app: >k::Application) { window.show(); } -pub fn main(_args: &[String]) { +pub fn main() { let app = gtk::Application::builder() .application_id("fr.linkmauve.TabletEmu") .build();