[gtkmm] Add Gtk::PasswordEntry
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Add Gtk::PasswordEntry
- Date: Tue, 5 Mar 2019 16:04:38 +0000 (UTC)
commit 9f4501bf2d07392b3503f8af4f6453754b8c3f13
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue Mar 5 17:01:36 2019 +0100
Add Gtk::PasswordEntry
.gitignore | 2 ++
gtk/gtkmm.h | 1 +
gtk/src/filelist.am | 1 +
gtk/src/passwordentry.ccg | 17 +++++++++++++++++
gtk/src/passwordentry.hg | 47 +++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 68 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index 211c6efb..2b6c8714 100644
--- a/.gitignore
+++ b/.gitignore
@@ -375,6 +375,8 @@ gtk/gtkmm/paned.cc
gtk/gtkmm/paned.h
gtk/gtkmm/papersize.cc
gtk/gtkmm/papersize.h
+gtk/gtkmm/passwordentry.cc
+gtk/gtkmm/passwordentry.h
gtk/gtkmm/picture.cc
gtk/gtkmm/picture.h
gtk/gtkmm/popover.cc
diff --git a/gtk/gtkmm.h b/gtk/gtkmm.h
index 859679bd..b8464fb8 100644
--- a/gtk/gtkmm.h
+++ b/gtk/gtkmm.h
@@ -205,6 +205,7 @@ extern const int gtkmm_micro_version;
# include <gtkmm/pagesetupunixdialog.h>
#endif
#include <gtkmm/papersize.h>
+#include <gtkmm/passwordentry.h>
#include <gtkmm/picture.h>
#include <gtkmm/popover.h>
#include <gtkmm/popovermenu.h>
diff --git a/gtk/src/filelist.am b/gtk/src/filelist.am
index 3a3b44c5..769c1854 100644
--- a/gtk/src/filelist.am
+++ b/gtk/src/filelist.am
@@ -133,6 +133,7 @@ gtkmm_files_any_hg = \
pagesetup.hg \
paned.hg \
papersize.hg \
+ passwordentry.hg \
picture.hg \
popover.hg \
popovermenu.hg \
diff --git a/gtk/src/passwordentry.ccg b/gtk/src/passwordentry.ccg
new file mode 100644
index 00000000..3663c616
--- /dev/null
+++ b/gtk/src/passwordentry.ccg
@@ -0,0 +1,17 @@
+/* Copyright (C) 2019 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gtk/gtk.h>
diff --git a/gtk/src/passwordentry.hg b/gtk/src/passwordentry.hg
new file mode 100644
index 00000000..8e8bb0e2
--- /dev/null
+++ b/gtk/src/passwordentry.hg
@@ -0,0 +1,47 @@
+/* Copyright (C) 2019 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gtkmm/widget.h>
+#include <gtkmm/editable.h>
+
+_DEFS(gtkmm,gtk)
+_PINCLUDE(gtkmm/private/widget_p.h)
+
+namespace Gtk
+{
+
+/** An entry for secrets.
+ *
+ * %Gtk::PasswordEntry is an entry that has been tailored for
+ * entering secrets. It does not show its contents in clear text,
+ * does not allow to copy it to the clipboard, and it shows a
+ * warning when Caps-Lock is engaged.
+ *
+ * %Gtk::PasswordEntry provides no API of its own and should be used
+ * with the Gtk::Editable API.
+ *
+ * @newin{3,96}
+ * @ingroup Widgets
+ */
+class PasswordEntry : public Widget, public Editable
+{
+ _CLASS_GTKOBJECT(PasswordEntry, GtkPasswordEntry, GTK_PASSWORD_ENTRY, Gtk::Widget, GtkWidget)
+ _IMPLEMENTS_INTERFACE(Editable)
+public:
+ _CTOR_DEFAULT
+};
+
+} //namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]