[gtk] font button: Make final
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] font button: Make final
- Date: Tue, 28 May 2019 02:38:12 +0000 (UTC)
commit e11c1fcb91ff62df6cb4c530ecb60741c8ea0317
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 28 00:55:28 2019 +0000
font button: Make final
gtk/gtkfontbutton.c | 13 +++++++++++++
gtk/gtkfontbutton.h | 27 ---------------------------
2 files changed, 13 insertions(+), 27 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 6e12768c2f..d984a8661c 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -60,6 +60,19 @@
* GtkFontButton has a single CSS node with name fontbutton.
*/
+typedef struct _GtkFontButtonClass GtkFontButtonClass;
+
+struct _GtkFontButton
+{
+ GtkWidget parent_instance;
+};
+
+struct _GtkFontButtonClass
+{
+ GtkWidgetClass parent_class;
+
+ void (* font_set) (GtkFontButton *gfp);
+};
typedef struct
{
diff --git a/gtk/gtkfontbutton.h b/gtk/gtkfontbutton.h
index a05653c030..659cd3288f 100644
--- a/gtk/gtkfontbutton.h
+++ b/gtk/gtkfontbutton.h
@@ -35,38 +35,11 @@
G_BEGIN_DECLS
-/* GtkFontButton is a button widget that allow user to select a font.
- */
-
#define GTK_TYPE_FONT_BUTTON (gtk_font_button_get_type ())
#define GTK_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_BUTTON,
GtkFontButton))
-#define GTK_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_BUTTON,
GtkFontButtonClass))
#define GTK_IS_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_BUTTON))
-#define GTK_IS_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_BUTTON))
-#define GTK_FONT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_BUTTON,
GtkFontButtonClass))
typedef struct _GtkFontButton GtkFontButton;
-typedef struct _GtkFontButtonClass GtkFontButtonClass;
-
-struct _GtkFontButton
-{
- GtkWidget parent_instance;
-};
-
-struct _GtkFontButtonClass
-{
- GtkWidgetClass parent_class;
-
- /* font_set signal is emitted when font is chosen */
- void (* font_set) (GtkFontButton *gfp);
-
- /* 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_font_button_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]