set input purpose
This commit is contained in:
parent
66f06461a1
commit
90155796c6
|
@ -1,6 +1,6 @@
|
||||||
use gio::prelude::*;
|
use gio::prelude::*;
|
||||||
use gtk::prelude::*;
|
use gtk::prelude::*;
|
||||||
use gtk::Orientation;
|
use gtk::{Orientation, InputPurpose};
|
||||||
use std::env::args;
|
use std::env::args;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
|
@ -21,7 +21,8 @@ fn build_ui(application: >k::Application) {
|
||||||
let button = gtk::Button::with_label("Go!");
|
let button = gtk::Button::with_label("Go!");
|
||||||
|
|
||||||
input_url.set_placeholder_text(Some("Enter URL here"));
|
input_url.set_placeholder_text(Some("Enter URL here"));
|
||||||
|
input_url.set_input_purpose(InputPurpose::Url);
|
||||||
|
|
||||||
horizontal.set_homogeneous(true);
|
horizontal.set_homogeneous(true);
|
||||||
|
|
||||||
window.add(&vertical);
|
window.add(&vertical);
|
||||||
|
|
Loading…
Reference in New Issue