set input purpose

This commit is contained in:
Max Bradbury 2020-09-13 16:14:52 +01:00
parent 66f06461a1
commit 90155796c6
1 changed files with 3 additions and 2 deletions

View File

@ -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,6 +21,7 @@ fn build_ui(application: &gtk::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);