[gtk/password-entry-buffer] passwordentrybuffer: Small fixes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/password-entry-buffer] passwordentrybuffer: Small fixes
- Date: Tue, 8 Jun 2021 00:03:29 +0000 (UTC)
commit a20c74e6c92f1bc319cd80fadf5da009ef9855d8
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 7 20:02:54 2021 -0400
passwordentrybuffer: Small fixes
gtk/gtkpasswordentrybuffer.c | 10 ++++++++++
gtk/gtkpasswordentrybuffer.h | 1 +
2 files changed, 11 insertions(+)
---
diff --git a/gtk/gtkpasswordentrybuffer.c b/gtk/gtkpasswordentrybuffer.c
index 7b8b01a5eb..4a36d07729 100644
--- a/gtk/gtkpasswordentrybuffer.c
+++ b/gtk/gtkpasswordentrybuffer.c
@@ -30,6 +30,16 @@
/* Initial size of buffer, in bytes */
#define MIN_SIZE 16
+/**
+ * GtkPasswordEntryBuffer:
+ *
+ * A `GtkEntryBuffer` that locks the underlying memory to prevent it
+ * from being swapped to disk.
+ *
+ * `GtkPasswordEntry` uses a `GtkPasswordEntryBuffer`.
+ *
+ * Since 4.4.
+ */
struct _GtkPasswordEntryBuffer
{
GtkEntryBuffer parent_instance;
diff --git a/gtk/gtkpasswordentrybuffer.h b/gtk/gtkpasswordentrybuffer.h
index a8eb7841ef..3ca2520d36 100644
--- a/gtk/gtkpasswordentrybuffer.h
+++ b/gtk/gtkpasswordentrybuffer.h
@@ -26,6 +26,7 @@ G_BEGIN_DECLS
#define GTK_TYPE_PASSWORD_ENTRY_BUFFER (gtk_password_entry_buffer_get_type())
+GDK_AVAILABLE_IN_4_4
G_DECLARE_FINAL_TYPE (GtkPasswordEntryBuffer, gtk_password_entry_buffer, GTK, PASSWORD_ENTRY_BUFFER,
GtkEntryBuffer)
GDK_AVAILABLE_IN_4_4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]