forked from AuroraMiddleware/gtk
Merge branch 'password-entry-buffer' into 'master'
Make GtkPasswordEntryBuffer public See merge request GNOME/gtk!3645
This commit is contained in:
commit
92fcd37a19
@ -191,6 +191,7 @@
|
|||||||
#include <gtk/gtkpaned.h>
|
#include <gtk/gtkpaned.h>
|
||||||
#include <gtk/gtkpapersize.h>
|
#include <gtk/gtkpapersize.h>
|
||||||
#include <gtk/gtkpasswordentry.h>
|
#include <gtk/gtkpasswordentry.h>
|
||||||
|
#include <gtk/gtkpasswordentrybuffer.h>
|
||||||
#include <gtk/gtkpicture.h>
|
#include <gtk/gtkpicture.h>
|
||||||
#include <gtk/gtkpopover.h>
|
#include <gtk/gtkpopover.h>
|
||||||
#include <gtk/gtkpopovermenu.h>
|
#include <gtk/gtkpopovermenu.h>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "gtkimage.h"
|
#include "gtkimage.h"
|
||||||
#include "gtkintl.h"
|
#include "gtkintl.h"
|
||||||
#include "gtkmarshalers.h"
|
#include "gtkmarshalers.h"
|
||||||
#include "gtkpasswordentrybufferprivate.h"
|
#include "gtkpasswordentrybuffer.h"
|
||||||
#include "gtkprivate.h"
|
#include "gtkprivate.h"
|
||||||
#include "gtkwidgetprivate.h"
|
#include "gtkwidgetprivate.h"
|
||||||
#include "gtkcsspositionvalueprivate.h"
|
#include "gtkcsspositionvalueprivate.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gtkpasswordentrybufferprivate.h"
|
#include "gtkpasswordentrybuffer.h"
|
||||||
|
|
||||||
#include "gtksecurememoryprivate.h"
|
#include "gtksecurememoryprivate.h"
|
||||||
|
|
||||||
@ -30,6 +30,16 @@
|
|||||||
/* Initial size of buffer, in bytes */
|
/* Initial size of buffer, in bytes */
|
||||||
#define MIN_SIZE 16
|
#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
|
struct _GtkPasswordEntryBuffer
|
||||||
{
|
{
|
||||||
GtkEntryBuffer parent_instance;
|
GtkEntryBuffer parent_instance;
|
||||||
@ -192,7 +202,7 @@ gtk_password_entry_buffer_init (GtkPasswordEntryBuffer *self)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/*< private >
|
/**
|
||||||
* gtk_password_entry_buffer_new:
|
* gtk_password_entry_buffer_new:
|
||||||
*
|
*
|
||||||
* Creates a new `GtkEntryBuffer` using secure memory allocations.
|
* Creates a new `GtkEntryBuffer` using secure memory allocations.
|
||||||
|
@ -26,8 +26,10 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define GTK_TYPE_PASSWORD_ENTRY_BUFFER (gtk_password_entry_buffer_get_type())
|
#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)
|
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);
|
GtkEntryBuffer * gtk_password_entry_buffer_new (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
Loading…
Reference in New Issue
Block a user