Make GtkPasswordEntryBuffer public

This commit is contained in:
Matthias Clasen 2021-06-08 11:25:11 +00:00
parent 825ffb9422
commit d8bde48b87
4 changed files with 16 additions and 3 deletions

View File

@ -191,6 +191,7 @@
#include <gtk/gtkpaned.h>
#include <gtk/gtkpapersize.h>
#include <gtk/gtkpasswordentry.h>
#include <gtk/gtkpasswordentrybuffer.h>
#include <gtk/gtkpicture.h>
#include <gtk/gtkpopover.h>
#include <gtk/gtkpopovermenu.h>

View File

@ -31,7 +31,7 @@
#include "gtkimage.h"
#include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtkpasswordentrybufferprivate.h"
#include "gtkpasswordentrybuffer.h"
#include "gtkprivate.h"
#include "gtkwidgetprivate.h"
#include "gtkcsspositionvalueprivate.h"

View File

@ -21,7 +21,7 @@
#include "config.h"
#include "gtkpasswordentrybufferprivate.h"
#include "gtkpasswordentrybuffer.h"
#include "gtksecurememoryprivate.h"
@ -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;
@ -192,7 +202,7 @@ gtk_password_entry_buffer_init (GtkPasswordEntryBuffer *self)
{
}
/*< private >
/**
* gtk_password_entry_buffer_new:
*
* Creates a new `GtkEntryBuffer` using secure memory allocations.

View File

@ -26,8 +26,10 @@ 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
GtkEntryBuffer * gtk_password_entry_buffer_new (void);
G_END_DECLS