[gtk] app chooser button: Make final



commit 5b4dfb3079451be7d93444dcf91726994ba0d29e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 27 20:30:35 2019 -0400

    app chooser button: Make final

 gtk/gtkappchooserbutton.c | 14 ++++++++++++++
 gtk/gtkappchooserbutton.h | 30 ------------------------------
 2 files changed, 14 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c
index f8721a0720..61df5844b5 100644
--- a/gtk/gtkappchooserbutton.c
+++ b/gtk/gtkappchooserbutton.c
@@ -104,6 +104,20 @@ static void real_insert_separator   (GtkAppChooserButton *self,
 static guint signals[NUM_SIGNALS] = { 0, };
 static GParamSpec *properties[NUM_PROPERTIES];
 
+typedef struct _GtkAppChooserButtonClass   GtkAppChooserButtonClass;
+
+struct _GtkAppChooserButton {
+  GtkWidget parent_instance;
+};
+
+struct _GtkAppChooserButtonClass {
+  GtkWidgetClass parent_class;
+
+  void (* changed)               (GtkAppChooserButton *self);
+  void (* custom_item_activated) (GtkAppChooserButton *self,
+                                  const gchar *item_name);
+};
+
 typedef struct
 {
   GtkWidget *combobox;
diff --git a/gtk/gtkappchooserbutton.h b/gtk/gtkappchooserbutton.h
index 98e965a32d..c57456aeef 100644
--- a/gtk/gtkappchooserbutton.h
+++ b/gtk/gtkappchooserbutton.h
@@ -33,39 +33,9 @@ G_BEGIN_DECLS
 
 #define GTK_TYPE_APP_CHOOSER_BUTTON            (gtk_app_chooser_button_get_type ())
 #define GTK_APP_CHOOSER_BUTTON(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButton))
-#define GTK_APP_CHOOSER_BUTTON_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), 
GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass))
 #define GTK_IS_APP_CHOOSER_BUTTON(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
GTK_TYPE_APP_CHOOSER_BUTTON))
-#define GTK_IS_APP_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GTK_TYPE_APP_CHOOSER_BUTTON))
-#define GTK_APP_CHOOSER_BUTTON_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass))
 
 typedef struct _GtkAppChooserButton        GtkAppChooserButton;
-typedef struct _GtkAppChooserButtonClass   GtkAppChooserButtonClass;
-
-struct _GtkAppChooserButton {
-  GtkWidget parent_instance;
-};
-
-/**
- * GtkAppChooserButtonClass:
- * @parent_class: The parent class.
- * @custom_item_activated: Signal emitted when a custom item,
- *    previously added with gtk_app_chooser_button_append_custom_item(),
- *    is activated from the dropdown menu.
- */
-struct _GtkAppChooserButtonClass {
-  GtkWidgetClass parent_class;
-
-  /*< public >*/
-
-  void (* changed)               (GtkAppChooserButton *self);
-  void (* custom_item_activated) (GtkAppChooserButton *self,
-                                  const gchar *item_name);
-
-  /*< private >*/
-
-  /* padding for future class expansion */
-  gpointer padding[16];
-};
 
 GDK_AVAILABLE_IN_ALL
 GType       gtk_app_chooser_button_get_type           (void) G_GNUC_CONST;


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