[gtk] search bar: Make final



commit 4e7f251b18c40933499bb51a2c3de728082046ef
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 26 23:27:15 2019 -0400

    search bar: Make final

 gtk/gtksearchbar.c | 12 ++++++++++++
 gtk/gtksearchbar.h | 27 ---------------------------
 2 files changed, 12 insertions(+), 27 deletions(-)
---
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index 016b78cde9..51071b3049 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -82,6 +82,18 @@
  * [A simple example](https://gitlab.gnome.org/GNOME/gtk/tree/master/examples/search-bar.c)
  */
 
+typedef struct _GtkSearchBarClass   GtkSearchBarClass;
+
+struct _GtkSearchBar
+{
+  GtkBin parent;
+};
+
+struct _GtkSearchBarClass
+{
+  GtkBinClass parent_class;
+};
+
 typedef struct {
   GtkWidget   *revealer;
   GtkWidget   *box_center;
diff --git a/gtk/gtksearchbar.h b/gtk/gtksearchbar.h
index 3bd9a69b85..febfb1e975 100644
--- a/gtk/gtksearchbar.h
+++ b/gtk/gtksearchbar.h
@@ -39,36 +39,9 @@ G_BEGIN_DECLS
 
 #define GTK_TYPE_SEARCH_BAR                 (gtk_search_bar_get_type ())
 #define GTK_SEARCH_BAR(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_BAR, 
GtkSearchBar))
-#define GTK_SEARCH_BAR_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_BAR, 
GtkSearchBarClass))
 #define GTK_IS_SEARCH_BAR(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_BAR))
-#define GTK_IS_SEARCH_BAR_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_BAR))
-#define GTK_SEARCH_BAR_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_BAR, 
GtkSearchBarClass))
 
 typedef struct _GtkSearchBar        GtkSearchBar;
-typedef struct _GtkSearchBarClass   GtkSearchBarClass;
-
-struct _GtkSearchBar
-{
-  /*< private >*/
-  GtkBin parent;
-};
-
-/**
- * GtkSearchBarClass:
- * @parent_class: The parent class.
- */
-struct _GtkSearchBarClass
-{
-  GtkBinClass parent_class;
-
-  /*< private >*/
-
-  /* Padding for future expansion */
-  void (*_gtk_reserved1) (void);
-  void (*_gtk_reserved2) (void);
-  void (*_gtk_reserved3) (void);
-  void (*_gtk_reserved4) (void);
-};
 
 GDK_AVAILABLE_IN_ALL
 GType       gtk_search_bar_get_type        (void) G_GNUC_CONST;


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