set input purpose
This commit is contained in:
parent
66f06461a1
commit
90155796c6
|
@ -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: >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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue