summaryrefslogtreecommitdiff
path: root/src/authorize-dialog.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-11 18:47:33 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-11 18:47:33 +0100
commitf1a056923fce6dd0ebd778d381794d3090a62e8c (patch)
treebdec089a7e8046bec17d23c64d5c4ee4a356a1a0 /src/authorize-dialog.vala
parent0b098a24e80acb1bd7ffeed90c6c821f8420b84a (diff)
parentab6556e393162fff0e0e0c80a9fff689b4e2ca05 (diff)
Update upstream source from tag 'upstream/3.26.2'
Update to upstream version '3.26.2' with Debian dir f1471e23cdedd43d9950b3078b7120e6c8510a8f
Diffstat (limited to 'src/authorize-dialog.vala')
-rw-r--r--src/authorize-dialog.vala37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/authorize-dialog.vala b/src/authorize-dialog.vala
new file mode 100644
index 0000000..a6e5ab0
--- /dev/null
+++ b/src/authorize-dialog.vala
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2009-2017 Canonical Ltd.
+ * Author: Robert Ancell <robert.ancell@canonical.com>,
+ * Eduard Gotwig <g@ox.io>
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
+ * license.
+ */
+
+[GtkTemplate (ui = "/org/gnome/SimpleScan/authorize-dialog.ui")]
+private class AuthorizeDialog : Gtk.Dialog
+{
+ [GtkChild]
+ private Gtk.Label authorize_label;
+ [GtkChild]
+ private Gtk.Entry username_entry;
+ [GtkChild]
+ private Gtk.Entry password_entry;
+
+ public AuthorizeDialog (string title)
+ {
+ authorize_label.set_text (title);
+ }
+
+ public string get_username ()
+ {
+ return username_entry.text;
+ }
+
+ public string get_password ()
+ {
+ return password_entry.text;
+ }
+}