[gtk/password-entry-buffer] Make GtkPasswordEntryBuffer public




commit 1d7418b92086da1884116ea32ce462255cfe98b1
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 7 17:01:16 2021 -0400

    Make GtkPasswordEntryBuffer public
    
    Reimplementing this is annoying, and exposing it
    does not really add any new api.

 gtk/gtk.h                                                         | 1 +
 gtk/gtkpasswordentry.c                                            | 2 +-
 gtk/gtkpasswordentrybuffer.c                                      | 4 ++--
 gtk/{gtkpasswordentrybufferprivate.h => gtkpasswordentrybuffer.h} | 1 +
 4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtk.h b/gtk/gtk.h
index d5f50a86b3..4d5dc5902d 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -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>
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index 1c11f5cb6a..7e6e470dd7 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -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"
diff --git a/gtk/gtkpasswordentrybuffer.c b/gtk/gtkpasswordentrybuffer.c
index bbb51311c7..7b8b01a5eb 100644
--- a/gtk/gtkpasswordentrybuffer.c
+++ b/gtk/gtkpasswordentrybuffer.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "gtkpasswordentrybufferprivate.h"
+#include "gtkpasswordentrybuffer.h"
 
 #include "gtksecurememoryprivate.h"
 
@@ -192,7 +192,7 @@ gtk_password_entry_buffer_init (GtkPasswordEntryBuffer *self)
 {
 }
 
-/*< private >
+/**
  * gtk_password_entry_buffer_new:
  *
  * Creates a new `GtkEntryBuffer` using secure memory allocations.
diff --git a/gtk/gtkpasswordentrybufferprivate.h b/gtk/gtkpasswordentrybuffer.h
similarity index 98%
rename from gtk/gtkpasswordentrybufferprivate.h
rename to gtk/gtkpasswordentrybuffer.h
index 2f6f1da2cd..a8eb7841ef 100644
--- a/gtk/gtkpasswordentrybufferprivate.h
+++ b/gtk/gtkpasswordentrybuffer.h
@@ -28,6 +28,7 @@ G_BEGIN_DECLS
 
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]