From 90155796c6e22176112d6b3c8372a838ce6a6f62 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 13 Sep 2020 16:14:52 +0100 Subject: [PATCH] set input purpose --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5ed437c..dd90ca1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use gio::prelude::*; use gtk::prelude::*; -use gtk::Orientation; +use gtk::{Orientation, InputPurpose}; use std::env::args; use std::process::Command; @@ -21,7 +21,8 @@ fn build_ui(application: >k::Application) { let button = gtk::Button::with_label("Go!"); input_url.set_placeholder_text(Some("Enter URL here")); - + input_url.set_input_purpose(InputPurpose::Url); + horizontal.set_homogeneous(true); window.add(&vertical);