diff options
Diffstat (limited to 'gtk/gtkscalebutton.c')
-rw-r--r-- | gtk/gtkscalebutton.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index 2a5c3d69bf..bc23e4d732 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -167,6 +167,7 @@ static void gtk_scale_button_update_icon (GtkScaleButton *button); static void gtk_scale_button_scale_value_changed(GtkRange *range); G_DEFINE_TYPE_WITH_CODE (GtkScaleButton, gtk_scale_button, GTK_TYPE_BUTTON, + G_ADD_PRIVATE (GtkScaleButton) G_IMPLEMENT_INTERFACE (GTK_TYPE_ORIENTABLE, NULL)) @@ -194,8 +195,6 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass) GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkBindingSet *binding_set; - g_type_class_add_private (klass, sizeof (GtkScaleButtonPrivate)); - gobject_class->constructor = gtk_scale_button_constructor; gobject_class->finalize = gtk_scale_button_finalize; gobject_class->dispose = gtk_scale_button_dispose; @@ -385,9 +384,7 @@ gtk_scale_button_init (GtkScaleButton *button) { GtkScaleButtonPrivate *priv; - button->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (button, - GTK_TYPE_SCALE_BUTTON, - GtkScaleButtonPrivate); + button->priv = priv = gtk_scale_button_get_instance_private (button); priv->timeout = FALSE; priv->click_id = 0; |