Mercurial > tablet-emu
diff src/bin/client.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/client.rs@0bce7fe96937 |
children | ba09079686a0 |
line wrap: on
line diff
copy from src/client.rs copy to src/bin/client.rs --- a/src/client.rs +++ b/src/bin/client.rs @@ -14,15 +14,14 @@ // 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::FakeState, DEFAULT_HEIGHT, DEFAULT_WIDTH}; use gio::prelude::*; use glib::clone; use gtk::prelude::*; use input_linux::Key; +use std::net::UdpSocket; use std::sync::{Arc, Mutex}; -use std::net::UdpSocket; -use crate::Event; -use crate::server::Buttons; +use tablet_emu::protocol::{Buttons, Event}; +use tablet_emu::{state::FakeState, DEFAULT_HEIGHT, DEFAULT_WIDTH}; fn build_main_menu(app: >k::Application) { let quit = gio::SimpleAction::new("quit", None); @@ -204,7 +203,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();