Restored a mistakenly removed ifdef.
[claws.git] / src / gtk / gtkshruler.c
index f6df16f25098b553fb8d9d35f899db144129b3e4..9db770da9dd42502ad3365c804c5276def8672b0 100644 (file)
@@ -195,7 +195,9 @@ gtk_shruler_class_init (GtkSHRulerClass *klass)
   widget_class->motion_notify_event = gtk_shruler_motion_notify;
   widget_class->expose_event        = gtk_shruler_expose;
 
+#if !GLIB_CHECK_VERSION(2, 58, 0)
   g_type_class_add_private (object_class, sizeof (GtkSHRulerPrivate));
+#endif
 
   g_object_class_install_property (object_class,
                                    PROP_ORIENTATION,