level bar: Make final

This commit is contained in:
Matthias Clasen 2019-05-26 22:24:14 -04:00
parent f47a84f233
commit aea82cb331
2 changed files with 12 additions and 19 deletions

View File

@ -164,6 +164,18 @@ typedef struct {
gdouble value;
} GtkLevelBarOffset;
struct _GtkLevelBar {
GtkWidget parent_instance;
};
typedef struct _GtkLevelBarClass GtkLevelBarClass;
struct _GtkLevelBarClass {
GtkWidgetClass parent_class;
void (* offset_changed) (GtkLevelBar *self,
const gchar *name);
};
typedef struct _GtkLevelBarPrivate GtkLevelBarPrivate;
struct _GtkLevelBarPrivate {
GtkOrientation orientation;

View File

@ -31,10 +31,7 @@ G_BEGIN_DECLS
#define GTK_TYPE_LEVEL_BAR (gtk_level_bar_get_type ())
#define GTK_LEVEL_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LEVEL_BAR, GtkLevelBar))
#define GTK_LEVEL_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LEVEL_BAR, GtkLevelBarClass))
#define GTK_IS_LEVEL_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LEVEL_BAR))
#define GTK_IS_LEVEL_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LEVEL_BAR))
#define GTK_LEVEL_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LEVEL_BAR, GtkLevelBarClass))
/**
* GTK_LEVEL_BAR_OFFSET_LOW:
@ -57,24 +54,8 @@ G_BEGIN_DECLS
*/
#define GTK_LEVEL_BAR_OFFSET_FULL "full"
typedef struct _GtkLevelBarClass GtkLevelBarClass;
typedef struct _GtkLevelBar GtkLevelBar;
struct _GtkLevelBar {
/*< private >*/
GtkWidget parent_instance;
};
struct _GtkLevelBarClass {
/*< private >*/
GtkWidgetClass parent_class;
void (* offset_changed) (GtkLevelBar *self,
const gchar *name);
/* padding for future class expansion */
gpointer padding[16];
};
GDK_AVAILABLE_IN_ALL
GType gtk_level_bar_get_type (void) G_GNUC_CONST;